From 8a207c16d2eb44ebcf94b13b0db047e46b7b0d30 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 18 Jun 2005 16:53:27 +0000 Subject: [PATCH] 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 --- 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 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); -- 2.34.1