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'",
This commit is contained in:
@@ -369,7 +369,7 @@ static int platform_testSetErrorEmptyInput(void *arg)
|
|||||||
static int platform_testSetErrorInvalidInput(void *arg)
|
static int platform_testSetErrorInvalidInput(void *arg)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
const char *invalidError = NULL;
|
const char *invalidError = "";
|
||||||
const char *probeError = "Testing";
|
const char *probeError = "Testing";
|
||||||
const char *lastError;
|
const char *lastError;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|||||||
Reference in New Issue
Block a user