[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 17 06:20:28 PDT 2005
Changes in directory llvm/include/llvm/Support:
CommandLine.h updated: 1.43 -> 1.44
---
Log message:
silence a huge number of bogus warnings with GCC 4 on Reid's tester.
---
Diffs of the changes: (+2 -1)
CommandLine.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.43 llvm/include/llvm/Support/CommandLine.h:1.44
--- llvm/include/llvm/Support/CommandLine.h:1.43 Thu Apr 21 21:31:56 2005
+++ llvm/include/llvm/Support/CommandLine.h Fri Jun 17 08:20:15 2005
@@ -734,7 +734,8 @@
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);
More information about the llvm-commits
mailing list