summaryrefslogtreecommitdiffstats
path: root/utils/fpcmp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-06-13 19:17:49 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-06-13 19:17:49 +0000
commit4a4bfd87a4ad764b173f749c4ae61facbb753fb9 (patch)
tree37848eac5d476d48913d197d69f259eee8d6adf9 /utils/fpcmp
parentdf497317f1cfc1566d3e1c61040593d90434fca2 (diff)
downloadexternal_llvm-4a4bfd87a4ad764b173f749c4ae61facbb753fb9.zip
external_llvm-4a4bfd87a4ad764b173f749c4ae61facbb753fb9.tar.gz
external_llvm-4a4bfd87a4ad764b173f749c4ae61facbb753fb9.tar.bz2
Get rid of "might be uninitialized" warnings when compiling with GCC 3.3.2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/fpcmp')
-rw-r--r--utils/fpcmp/fpcmp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fpcmp/fpcmp.cpp b/utils/fpcmp/fpcmp.cpp
index c3cdd29..6c3354c 100644
--- a/utils/fpcmp/fpcmp.cpp
+++ b/utils/fpcmp/fpcmp.cpp
@@ -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);