]> granicus.if.org Git - clang/commitdiff
Give this warning a flag that can be used to turn it off in old, crufty,
authorChandler Carruth <chandlerc@gmail.com>
Fri, 25 Feb 2011 06:53:20 +0000 (06:53 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 25 Feb 2011 06:53:20 +0000 (06:53 +0000)
legacy code that contains dead code paths referring to such
declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126478 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td

index 20633a8b47fc2f81a5192ee7d29c19ad6ab4358e..487b3c4d6a5b4bd0cd328cecc22aed0c3e29916d 100644 (file)
@@ -2027,9 +2027,10 @@ def err_redefinition_extern_inline : Error<
 
 // 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;