Don't use the deprecated 'register' storage specifier.
It is not only useless with any modern C++ compiler, but also deprecated in C++11. Removing it fixes Clang warnings on the subject. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1321,7 +1321,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth, double scale)
|
||||
UseAlpha() ;
|
||||
|
||||
unsigned char* destinationstart = (unsigned char*) BeginRawAccess() ;
|
||||
register unsigned char* data = image.GetData();
|
||||
unsigned char* data = image.GetData();
|
||||
if ( destinationstart != NULL && data != NULL )
|
||||
{
|
||||
const unsigned char *alpha = hasAlpha ? image.GetAlpha() : NULL ;
|
||||
|
||||
Reference in New Issue
Block a user