Fix compilation / same as sdl2-compat

testautomation_platform.c:351:28: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
  351 |     result = SDL_SetError("%s", testError);
      |                            ^~
/home/slvn/release/Release_SDL/sdl2-compat/test/testautomation_platform.c:364:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
  364 |                             "SDL_GetError(): expected message '%s', was message: '%s'",
main
Sylvain 2023-12-20 09:40:09 +01:00 committed by Ozkan Sezer
parent 72c366bf3d
commit 56f111dffc
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ static int platform_testSetErrorEmptyInput(void *arg)
static int platform_testSetErrorInvalidInput(void *arg)
{
int result;
const char *invalidError = NULL;
const char *invalidError = "";
const char *probeError = "Testing";
const char *lastError;
size_t len;