[cfe-commits] r109987 - /cfe/trunk/lib/Basic/Diagnostic.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Aug 1 15:13:16 PDT 2010
Author: efriedma
Date: Sun Aug 1 17:13:15 2010
New Revision: 109987
URL: http://llvm.org/viewvc/llvm-project?rev=109987&view=rev
Log:
PR7777: Set EnabledByDefault to something useful, instead of setting it
randomly. This makes us consistently show "-pedantic" as the warning option
for a warning where appropriate.
Modified:
cfe/trunk/lib/Basic/Diagnostic.cpp
Modified: cfe/trunk/lib/Basic/Diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Diagnostic.cpp?rev=109987&r1=109986&r2=109987&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Diagnostic.cpp (original)
+++ cfe/trunk/lib/Basic/Diagnostic.cpp Sun Aug 1 17:13:15 2010
@@ -327,7 +327,7 @@
getBuiltinDiagClass(DiagID) != CLASS_EXTENSION)
return false;
- EnabledByDefault = StaticDiagInfo[DiagID].Mapping != diag::MAP_IGNORE;
+ EnabledByDefault = GetDefaultDiagMapping(DiagID) != diag::MAP_IGNORE;
return true;
}
More information about the cfe-commits
mailing list