diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-06-18 16:53:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-06-18 16:53:27 +0000 |
commit | 8a207c16d2eb44ebcf94b13b0db047e46b7b0d30 (patch) | |
tree | 31304b6936121c22a07baa497090a92665a9d2c8 /include/llvm/Support/CommandLine.h | |
parent | 72b16d820cf49026a00c732abcbc039b5fb8673f (diff) |
Make sure a variable is initialized before use to clean up a warning from
GCC 4.0.0 in release build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c5e909d8a2..9cad99f441 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -894,7 +894,8 @@ class list : public Option, public list_storage<DataType, Storage> { virtual bool handleOccurrence(unsigned pos, const char *ArgName, const std::string &Arg) { - typename ParserClass::parser_data_type Val; + typename ParserClass::parser_data_type Val = + typename ParserClass::parser_data_type(); if (Parser.parse(*this, ArgName, Arg, Val)) return true; // Parse Error! addValue(Val); |