]> granicus.if.org Git - clang/commit
Split -Wunused-variable warning.
authorDaniel Jasper <djasper@google.com>
Wed, 11 Sep 2013 10:37:35 +0000 (10:37 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 11 Sep 2013 10:37:35 +0000 (10:37 +0000)
commit71fcba874e399eb33e0ebf7c6b19bc2a5e876993
tree56cccf77aeccb2bf35c97dd48c0b90d4998608cd
parent595ff7fe7424a33dafbb439a9073e5d97b716f66
Split -Wunused-variable warning.

With r190382, -Wunused-variable warns about unused const variables when
appropriate. For codebases that use -Werror, this poses a problem as
existing unused const variables need to be cleaned up first. To make the
transistion easier, this patch splits -Wunused-variable by pulling out
an additional -Wunused-const-variable (by default activated along with
-Wunused-variable).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190508 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/Sema.cpp
test/SemaCXX/no-warn-unused-const-variables.cpp [new file with mode: 0644]