[llvm-commits] CVS: llvm/utils/fpcmp/fpcmp.cpp
LLVM
llvm at cs.uiuc.edu
Sun Jun 13 14:24:01 PDT 2004
Changes in directory llvm/utils/fpcmp:
fpcmp.cpp updated: 1.7 -> 1.8
---
Log message:
Get rid of "might be uninitialized" warnings when compiling with GCC 3.3.2
---
Diffs of the changes: (+1 -1)
Index: llvm/utils/fpcmp/fpcmp.cpp
diff -u llvm/utils/fpcmp/fpcmp.cpp:1.7 llvm/utils/fpcmp/fpcmp.cpp:1.8
--- llvm/utils/fpcmp/fpcmp.cpp:1.7 Wed Jun 9 13:28:53 2004
+++ llvm/utils/fpcmp/fpcmp.cpp Sun Jun 13 14:17:49 2004
@@ -65,7 +65,7 @@
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);
More information about the llvm-commits
mailing list