fix build error due to -Wshadow

main
Ozkan Sezer 2023-02-05 20:45:02 +03:00
parent 653f2c4ba3
commit e1d79b418c
1 changed files with 3 additions and 3 deletions

View File

@ -1164,7 +1164,7 @@ hasTexAlpha(void)
static void
compare(SDL_Surface *referenceSurface, int allowable_error)
{
int result;
int ret;
SDL_Rect rect;
Uint8 *pixels;
SDL_Surface *testSurface;
@ -1188,8 +1188,8 @@ compare(SDL_Surface *referenceSurface, int allowable_error)
SDLTest_AssertCheck(testSurface != NULL, "Verify result from SDL_CreateSurfaceFrom is not NULL");
/* Compare surface. */
result = SDLTest_CompareSurfaces( testSurface, referenceSurface, allowable_error );
SDLTest_AssertCheck(result == 0, "Validate result from SDLTest_CompareSurfaces, expected: 0, got: %i", result);
ret = SDLTest_CompareSurfaces( testSurface, referenceSurface, allowable_error );
SDLTest_AssertCheck(ret == 0, "Validate result from SDLTest_CompareSurfaces, expected: 0, got: %i", ret);
/* Clean up. */
SDL_free(pixels);