From: Chris Lattner Date: Sun, 8 Mar 2009 20:13:45 +0000 (+0000) Subject: the macro redefinition ext warning should default to on, to match gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e9990b63518b9ca63d6585dfbd492f452f794c2;p=clang the macro redefinition ext warning should default to on, to match gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66390 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticLexKinds.def b/include/clang/Basic/DiagnosticLexKinds.def index f1d918ea02..fb701d6f60 100644 --- a/include/clang/Basic/DiagnosticLexKinds.def +++ b/include/clang/Basic/DiagnosticLexKinds.def @@ -152,7 +152,7 @@ DIAG(ext_pp_comma_expr, EXTENSION, "comma operator in operand of #if") DIAG(ext_pp_bad_vaargs_use, EXTENSION, "__VA_ARGS__ can only appear in the expansion of a C99 variadic macro") -DIAG(ext_pp_macro_redef, EXTENSION, +DIAG(ext_pp_macro_redef, EXTWARN, "%0 macro redefined") DIAG(ext_variadic_macro, EXTENSION, "variadic macros were introduced in C99")