diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-01-29 05:23:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-01-29 05:23:19 +0000 |
| commit | 0f65a585bacb6de5b9979c34d02bf5b7c6f14415 (patch) | |
| tree | dcb3ea7917deaf3353decab1226d3716cb70d5a5 | |
| parent | 60f36223a935b2f02949f0dad574b37d3caa2e4c (diff) | |
| download | bcm5719-llvm-0f65a585bacb6de5b9979c34d02bf5b7c6f14415.tar.gz bcm5719-llvm-0f65a585bacb6de5b9979c34d02bf5b7c6f14415.zip | |
Fix a wart that existed from before we had EXTWARN.
llvm-svn: 63272
| -rw-r--r-- | clang/Driver/clang.cpp | 9 | ||||
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticCommonKinds.def | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index f5bb058d088..ca91fc682ba 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -730,15 +730,6 @@ static void InitializeDiagnostics(Diagnostic &Diags) { 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); - } } //===----------------------------------------------------------------------===// diff --git a/clang/include/clang/Basic/DiagnosticCommonKinds.def b/clang/include/clang/Basic/DiagnosticCommonKinds.def index 1bdaf6ab3da..73863215370 100644 --- a/clang/include/clang/Basic/DiagnosticCommonKinds.def +++ b/clang/include/clang/Basic/DiagnosticCommonKinds.def @@ -75,9 +75,9 @@ DIAG(warn_implicit_function_decl, WARNING, "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") |

