[cfe-commits] r63272 - in /cfe/trunk: Driver/clang.cpp include/clang/Basic/DiagnosticCommonKinds.def
Chris Lattner
sabre at nondot.org
Wed Jan 28 21:23:20 PST 2009
Author: lattner
Date: Wed Jan 28 23:23:19 2009
New Revision: 63272
URL: http://llvm.org/viewvc/llvm-project?rev=63272&view=rev
Log:
Fix a wart that existed from before we had EXTWARN.
Modified:
cfe/trunk/Driver/clang.cpp
cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.def
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=63272&r1=63271&r2=63272&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Jan 28 23:23:19 2009
@@ -730,15 +730,6 @@
if (!WarnImplicitFunctionDeclaration)
Diags.setDiagnosticMapping(diag::warn_implicit_function_decl,
diag::MAP_IGNORE);
-
- // If -pedantic-errors is set, turn extensions that warn by default into
- // errors.
- if (ErrorOnExtensions) {
- Diags.setDiagnosticMapping(diag::warn_hex_escape_too_large,
- diag::MAP_ERROR);
- Diags.setDiagnosticMapping(diag::warn_octal_escape_too_large,
- diag::MAP_ERROR);
- }
}
//===----------------------------------------------------------------------===//
Modified: cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.def?rev=63272&r1=63271&r2=63272&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.def (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.def Wed Jan 28 23:23:19 2009
@@ -75,9 +75,9 @@
"implicit declaration of function %0")
DIAG(err_pp_I_dash_not_supported, ERROR,
"-I- not supported, please use -iquote instead")
-DIAG(warn_octal_escape_too_large, WARNING,
+DIAG(warn_octal_escape_too_large, EXTWARN,
"octal escape sequence out of range")
-DIAG(warn_hex_escape_too_large, WARNING,
+DIAG(warn_hex_escape_too_large, EXTWARN,
"hex escape sequence out of range")
DIAG(warn_pp_undef_identifier, WARNING,
"%0 is not defined, evaluates to 0")
More information about the cfe-commits
mailing list