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:
John Lorentzson 2025-04-17 11:32:51 +02:00
parent 638918b4df
commit 2928b8a362

View file

@ -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) for (long i = 0; i < rect_clamped.right - rect_clamped.left; ++i)
{ {
#ifdef LITTLE_ENDIAN #ifdef LITTLE_ENDIAN
register char red = source_pointer[0]; char red = source_pointer[0];
register char green = source_pointer[1]; char green = source_pointer[1];
register char blue = source_pointer[2]; char blue = source_pointer[2];
#else #else
register char red = source_pointer[1]; register char red = source_pointer[1];
register char green = source_pointer[2]; register char green = source_pointer[2];