From e6ad5ea996673f76b62e495d268c8bf7c9b0d205 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Jun 2005 13:20:15 +0000 Subject: [PATCH] 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 --- include/llvm/Support/CommandLine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);