From 1d1ba58f28750a0e8cbff591df84a12116134fb2 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 6 Jan 2016 22:39:29 +0100 Subject: [PATCH] Fixed compile warnings about uninitialized variables in test library. Found by buildbot. --- src/test/SDL_test_compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/SDL_test_compare.c b/src/test/SDL_test_compare.c index 45eb3c689..d06ead9f7 100644 --- a/src/test/SDL_test_compare.c +++ b/src/test/SDL_test_compare.c @@ -43,7 +43,7 @@ int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int bpp, bpp_reference; Uint8 *p, *p_reference; int dist; - int sampleErrorX, sampleErrorY, sampleDist; + int sampleErrorX = 0, sampleErrorY = 0, sampleDist = 0; Uint8 R, G, B, A; Uint8 Rd, Gd, Bd, Ad; char imageFilename[128];