From: Chris Lattner Date: Fri, 17 Jun 2005 13:20:15 +0000 (+0000) Subject: silence a huge number of bogus warnings with GCC 4 on Reid's tester. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6ad5ea996673f76b62e495d268c8bf7c9b0d205;p=oota-llvm.git silence a huge number of bogus warnings with GCC 4 on Reid's tester. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22244 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index e99d7bbeafd..c5e909d8a26 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -734,7 +734,8 @@ class opt : public Option, 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! setValue(Val);