mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-10 11:05:36 +00:00
Fix uninitialized variable warning when compiling tests with clang compiler
(cherry picked from commit 38e0094637)
This commit is contained in:
committed by
Ozkan Sezer
parent
e8aa9551cb
commit
ed92b6c79b
@@ -701,8 +701,8 @@ int rect_testIntersectRectEmpty(void *arg)
|
||||
*/
|
||||
int rect_testIntersectRectParam(void *arg)
|
||||
{
|
||||
SDL_Rect rectA;
|
||||
SDL_Rect rectB = { 0 };
|
||||
const SDL_Rect rectA = { 0, 0, 32, 32 };
|
||||
const SDL_Rect rectB = { 0, 0, 32, 32 };
|
||||
SDL_Rect result;
|
||||
SDL_bool intersection;
|
||||
|
||||
@@ -956,8 +956,8 @@ int rect_testHasIntersectionEmpty(void *arg)
|
||||
*/
|
||||
int rect_testHasIntersectionParam(void *arg)
|
||||
{
|
||||
SDL_Rect rectA;
|
||||
SDL_Rect rectB = { 0 };
|
||||
const SDL_Rect rectA = { 0, 0, 32, 32 };
|
||||
const SDL_Rect rectB = { 0, 0, 32, 32 };
|
||||
SDL_bool intersection;
|
||||
|
||||
/* invalid parameter combinations */
|
||||
@@ -1492,7 +1492,8 @@ int rect_testUnionRectInside(void *arg)
|
||||
*/
|
||||
int rect_testUnionRectParam(void *arg)
|
||||
{
|
||||
SDL_Rect rectA, rectB = { 0 };
|
||||
const SDL_Rect rectA = { 0, 0, 32, 32 };
|
||||
const SDL_Rect rectB = { 0, 0, 32, 32 };
|
||||
SDL_Rect result;
|
||||
|
||||
/* invalid parameter combinations */
|
||||
|
||||
Reference in New Issue
Block a user