From: John McCall Date: Thu, 29 Oct 2009 23:20:43 +0000 (+0000) Subject: Silence a gcc warning where it notices that default-constructing a class X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c475ee1339c03e2d544a28aa9b8da393ce7d20c;p=clang Silence a gcc warning where it notices that default-constructing a class doesn't initialize anything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85533 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index b544bc37e8..2c3f51493f 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -901,7 +901,7 @@ public: setTemplateNameLoc(Loc); for (unsigned i = 0, e = getNumArgs(); i != e; ++i) { - TemplateArgumentLocInfo Info; + TemplateArgumentLocInfo Info = TemplateArgumentLocInfo(); #ifndef NDEBUG // If asserts are enabled, be sure to initialize the argument // loc with the right kind of pointer.