Fix some possible gcc-4.2 may be used uninitialized warnings.

llvm-svn: 145293
This commit is contained in:
Daniel Dunbar 2011-11-28 22:19:36 +00:00
parent 9339d4556e
commit 787032b88e
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, unsigned DiagClass,
// 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;