[cfe-commits] r126478 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Chandler Carruth chandlerc at gmail.com
Thu Feb 24 22:53:20 PST 2011


Author: chandlerc
Date: Fri Feb 25 00:53:20 2011
New Revision: 126478

URL: http://llvm.org/viewvc/llvm-project?rev=126478&view=rev
Log:
Give this warning a flag that can be used to turn it off in old, crufty,
legacy code that contains dead code paths referring to such
declarations.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=126478&r1=126477&r2=126478&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Fri Feb 25 00:53:20 2011
@@ -2027,9 +2027,10 @@
 
 // This should eventually be an error.
 def warn_undefined_internal : Warning<
-  "%select{function|variable}0 %q1 has internal linkage but is not defined">;
+  "%select{function|variable}0 %q1 has internal linkage but is not defined">,
+  DiagGroup<"undefined-internal">;
 def note_used_here : Note<"used here">;
-  
+
 def warn_redefinition_of_typedef : Warning<
   "redefinition of typedef %0 is invalid in C">,
   InGroup<DiagGroup<"typedef-redefinition"> >, DefaultError;





More information about the cfe-commits mailing list