]> granicus.if.org Git - clang/commit
PR19305: Don't issue -Wunused-variable warnings on variable templates. It's not
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 2 Apr 2014 18:28:36 +0000 (18:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 2 Apr 2014 18:28:36 +0000 (18:28 +0000)
commitce167d998928ace8e12dd0edf7b5104850b2b325
tree697fe8d8f5c02a77f4c846b69472d237a64cbf1a
parenta423c1ba2fc8e912e638854851733bc9a9148520
PR19305: Don't issue -Wunused-variable warnings on variable templates. It's not
meaningful to odr-use the VarDecl inside a variable template. (Separately, it'd
be nice to track referenced-ness for templates, and warn on unused ones, but
that's really a distinct issue...)

Move a test that generates and tests a warning-suppressing error out to its own
test file, so it doesn't have weird effects on the other tests in the same file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205448 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/warn-unused-label-error.cpp [new file with mode: 0644]
test/SemaCXX/warn-unused-variables.cpp