forked from OSchip/llvm-project
Fix some possible gcc-4.2 may be used uninitialized warnings.
llvm-svn: 145293
This commit is contained in:
parent
9339d4556e
commit
787032b88e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue