From: Reid Spencer Date: Sat, 18 Jun 2005 16:53:27 +0000 (+0000) Subject: Make sure a variable is initialized before use to clean up a warning from X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8a207c16d2eb44ebcf94b13b0db047e46b7b0d30;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c5e909d8a26..9cad99f4415 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -894,7 +894,8 @@ class list : public Option, public list_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);