From 9720672374518145199cb4b8b6059c4df42450f2 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 20 Dec 2023 09:40:09 +0100 Subject: [PATCH] Fix compilation / same as sdl2-compat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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'", (cherry picked from commit 56f111dffc2828d67fd8e0402b0fe1193c48ce26) --- test/testautomation_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_platform.c b/test/testautomation_platform.c index ac85eef23..bd2aabed6 100644 --- a/test/testautomation_platform.c +++ b/test/testautomation_platform.c @@ -386,7 +386,7 @@ int platform_testSetErrorEmptyInput(void *arg) int platform_testSetErrorInvalidInput(void *arg) { int result; - const char *invalidError = NULL; + const char *invalidError = ""; const char *probeError = "Testing"; char *lastError; size_t len;