From: Simon McVittie Date: Wed, 17 Nov 2021 10:33:49 +0000 Subject: testgfx: Ensure format string directives are not interpreted MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ../../test/TestGfx.c: In function ‘ExecuteTest’: ../../test/TestGfx.c:247:25: error: format not a string literal and no format arguments [-Werror=format-security] 247 | SDL_Log(titletext); | ^~~~~~~~~ Signed-off-by: Simon McVittie --- test/TestGfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TestGfx.c b/test/TestGfx.c index e65b203..d7ecbef 100755 --- a/test/TestGfx.c +++ b/test/TestGfx.c @@ -244,7 +244,7 @@ void ExecuteTest(SDL_Renderer *renderer, PrimitivesTestCaseFp testCase, int test SDL_snprintf(titletext, TLEN, "Test %2i %20s: %10.1f /sec", testNum, testName, fps); textlength = (Sint16)strlen(titletext); stringRGBA (renderer, WIDTH/2-4*textlength,30-4,titletext,255,255,255,255); - SDL_Log(titletext); + SDL_Log("%s", titletext); } }