diff options
author | Michi Henning <michi@zeroc.com> | 2005-12-31 02:33:11 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-12-31 02:33:11 +0000 |
commit | a204f314c211eedc9b74b558f844c1d0ed14a0cc (patch) | |
tree | f0933c1ea4487a930a44f1b0feea5c94bb1fc53c /cpp/src/Slice/Parser.cpp | |
parent | Fixed http://www.zeroc.com/vbulletin/showthread.php?t=1968 (diff) | |
download | ice-a204f314c211eedc9b74b558f844c1d0ed14a0cc.tar.bz2 ice-a204f314c211eedc9b74b558f844c1d0ed14a0cc.tar.xz ice-a204f314c211eedc9b74b558f844c1d0ed14a0cc.zip |
Fixed warning emitted by GCC 4.02.
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index ac1fc25948e..3f49a5d84a3 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -4760,7 +4760,7 @@ Slice::Unit::scanPosition(const char* s) // enum LineType { File, Push, Pop }; - LineType type; + LineType type = File; idx = line.find_last_of(" \t\r"); if(idx != string::npos) @@ -4780,10 +4780,6 @@ Slice::Unit::scanPosition(const char* s) eraseWhiteSpace(line); } } - else - { - type = File; - } string currentFile; if(!line.empty()) |