From 9fb9bd31a3f0669b8742339a6055a9641dca8bcc Mon Sep 17 00:00:00 2001 From: Petar Popovic Date: Wed, 13 Aug 2025 22:59:17 +0200 Subject: [PATCH] emscripten tests: fix warning: uninitialized variable (cherry picked from commit 45feacf6088b57f4cf57fa1b61d49e71a68af1c7) --- test/testautomation_rect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testautomation_rect.c b/test/testautomation_rect.c index 34673705a2..c9cd387ca2 100644 --- a/test/testautomation_rect.c +++ b/test/testautomation_rect.c @@ -889,7 +889,7 @@ static int SDLCALL rect_testIntersectRectEmpty(void *arg) */ static int SDLCALL rect_testIntersectRectParam(void *arg) { - SDL_Rect rectA; + SDL_Rect rectA = { 0 }; SDL_Rect rectB = { 0 }; SDL_Rect result; bool intersection; @@ -1138,7 +1138,7 @@ static int SDLCALL rect_testHasIntersectionEmpty(void *arg) */ static int SDLCALL rect_testHasIntersectionParam(void *arg) { - SDL_Rect rectA; + SDL_Rect rectA = { 0 }; SDL_Rect rectB = { 0 }; bool intersection; @@ -1699,7 +1699,7 @@ static int SDLCALL rect_testUnionRectInside(void *arg) */ static int SDLCALL rect_testUnionRectParam(void *arg) { - SDL_Rect rectA, rectB = { 0 }; + SDL_Rect rectA = { 0 }, rectB = { 0 }; SDL_Rect result; /* invalid parameter combinations */