From: Chandler Carruth Date: Fri, 25 Feb 2011 06:53:20 +0000 (+0000) Subject: Give this warning a flag that can be used to turn it off in old, crufty, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79ac241f0b4b5a653adb7e07292d7b00c5cb92ff;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126478 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 20633a8b47..487b3c4d6a 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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 >, DefaultError;