Remove "register" declaration from little endian path
Declaring a "register variable" isn't allowed in modern C++ so I ditch that in the path that my dev machine compiles. I *should* remove them from both and update GCC on the Sun to as new as possible, but I'm not going to do that because that sound painful, so this is what it is.
This commit is contained in:
parent
638918b4df
commit
2928b8a362
1 changed files with 3 additions and 3 deletions
|
@ -180,9 +180,9 @@ ATTRIBUTE_HOT void RenderBackend_Blit(RenderBackend_Surface *source_surface, con
|
|||
for (long i = 0; i < rect_clamped.right - rect_clamped.left; ++i)
|
||||
{
|
||||
#ifdef LITTLE_ENDIAN
|
||||
register char red = source_pointer[0];
|
||||
register char green = source_pointer[1];
|
||||
register char blue = source_pointer[2];
|
||||
char red = source_pointer[0];
|
||||
char green = source_pointer[1];
|
||||
char blue = source_pointer[2];
|
||||
#else
|
||||
register char red = source_pointer[1];
|
||||
register char green = source_pointer[2];
|
||||
|
|
Loading…
Add table
Reference in a new issue