From b06643f41da07469bbf5fbb5c3620ff4c0cb0c92 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 14 Jan 2006 09:16:16 +0000 Subject: [PATCH] Fixed compiler warning about uninitialized variables. --- code/tools/lcc/cpp/eval.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/tools/lcc/cpp/eval.c b/code/tools/lcc/cpp/eval.c index 7061effd..95a9e119 100644 --- a/code/tools/lcc/cpp/eval.c +++ b/code/tools/lcc/cpp/eval.c @@ -219,6 +219,10 @@ evalop(struct pri pri) 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) {