From c5c8445bc40096f0020f8685194705446efbc1cd Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Fri, 3 Oct 2008 20:13:38 +0000 Subject: [PATCH] Get rid of (spurious) "variable may be used uninitialized" warning. This happens to work around a compiler bug in GCC 4.0 on (Motorola?) Macs too. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3078 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/solarsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/planets/solarsys.c b/sc2/src/sc2code/planets/solarsys.c index a78d60fe9..13196fe6f 100644 --- a/sc2/src/sc2code/planets/solarsys.c +++ b/sc2/src/sc2code/planets/solarsys.c @@ -1269,7 +1269,7 @@ ValidateOrbits (void) { BYTE i; BOOLEAN InnerSystem; - POINT old_pts[2]; + POINT old_pts[2] = { { 0, 0 }, { 0, 0 } }; PLANET_DESC *pCurDesc; InnerSystem = (BOOLEAN)(