Get rid of "might be uninitialized" warnings when compiling with GCC 3.3.2
authorReid Spencer <rspencer@reidspencer.com>
Sun, 13 Jun 2004 19:17:49 +0000 (19:17 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 13 Jun 2004 19:17:49 +0000 (19:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14169 91177308-0d34-0410-b5e6-96231b3b80d8

utils/fpcmp/fpcmp.cpp

index c3cdd29047948864359abfec97c5003746cf8061..6c3354c4e046b2110f1a428c9a1abcedd323a4af 100644 (file)
@@ -65,7 +65,7 @@ static char *BackupNumber(char *Pos, char *FirstChar) {
 
 static void CompareNumbers(char *&F1P, char *&F2P, char *F1End, char *F2End) {
   char *F1NumEnd, *F2NumEnd;
-  double V1, V2
+  double V1 = 0.0, V2 = 0.0
   // If we stop on numbers, compare their difference.
   if (isNumberChar(*F1P) && isNumberChar(*F2P)) {
     V1 = strtod(F1P, &F1NumEnd);