r483 - trunk/code/tools/lcc/cpp

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jan 14 04:16:16 EST 2006


Author: icculus
Date: 2006-01-14 04:16:16 -0500 (Sat, 14 Jan 2006)
New Revision: 483

Modified:
   trunk/code/tools/lcc/cpp/eval.c
Log:

Fixed compiler warning about uninitialized variables.



Modified: trunk/code/tools/lcc/cpp/eval.c
===================================================================
--- trunk/code/tools/lcc/cpp/eval.c	2006-01-14 00:36:39 UTC (rev 482)
+++ trunk/code/tools/lcc/cpp/eval.c	2006-01-14 09:16:16 UTC (rev 483)
@@ -219,6 +219,10 @@
 	long rv1, rv2;
 	int rtype, oper;
 
+	/* prevent compiler whining. */
+	v1.val = v2.val = 0;
+	v1.type = v2.type = 0;
+
 	rv2=0;
 	rtype=0;
 	while (pri.pri < priority[op[-1]].pri) {




More information about the quake3-commits mailing list