[cfe-commits] r145293 - /cfe/trunk/lib/Basic/DiagnosticIDs.cpp
Daniel Dunbar
daniel at zuster.org
Mon Nov 28 14:19:36 PST 2011
Author: ddunbar
Date: Mon Nov 28 16:19:36 2011
New Revision: 145293
URL: http://llvm.org/viewvc/llvm-project?rev=145293&view=rev
Log:
Fix some possible gcc-4.2 may be used uninitialized warnings.
Modified:
cfe/trunk/lib/Basic/DiagnosticIDs.cpp
Modified: cfe/trunk/lib/Basic/DiagnosticIDs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/DiagnosticIDs.cpp?rev=145293&r1=145292&r2=145293&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/DiagnosticIDs.cpp (original)
+++ cfe/trunk/lib/Basic/DiagnosticIDs.cpp Mon Nov 28 16:19:36 2011
@@ -553,7 +553,7 @@
// Ignore -pedantic diagnostics inside __extension__ blocks.
// (The diagnostics controlled by -pedantic are the extension diagnostics
// that are not enabled by default.)
- bool EnabledByDefault;
+ bool EnabledByDefault = false;
bool IsExtensionDiag = isBuiltinExtensionDiag(DiagID, EnabledByDefault);
if (Diag.AllExtensionsSilenced && IsExtensionDiag && !EnabledByDefault)
return DiagnosticIDs::Ignored;
More information about the cfe-commits
mailing list