mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
emscripten tests: fix warning: uninitialized variable
This commit is contained in:

committed by
Sam Lantinga

parent
a743fb578c
commit
45feacf608
@@ -916,7 +916,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;
|
||||
@@ -1165,7 +1165,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;
|
||||
|
||||
@@ -1726,7 +1726,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 */
|
||||
|
Reference in New Issue
Block a user