mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
emscripten tests: fix warning: uninitialized variable
(cherry picked from commit 45feacf608)
This commit is contained in:
parent
c3828bb0a3
commit
9fb9bd31a3
1 changed files with 3 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue