]> granicus.if.org Git - clang/commit
Suppress -Wunused-variable for variables declared in headers, which may in
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 10 Apr 2013 00:47:10 +0000 (00:47 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 10 Apr 2013 00:47:10 +0000 (00:47 +0000)
commit19b6a707a86302adc80d64464cbc3cb8a7a7f3a6
tree6cf3a4f01e7e76e11c016cb803bbf65f5891e12c
parent8da488dc0bf10d0b6b8861653e8014f0d06fe322
Suppress -Wunused-variable for variables declared in headers, which may in
fact be defined and used in another TU.

Reshuffle some test cases because we suppress -Wunused-variable after we've
emitted an error.

This fixes PR15558.

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