If there were errors, disable 'unused' warnings since they will mostly be noise.
commit4e9e9ba3a2bb05c9867dfa5b3fe1ea8f0a49907b
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 07:04:37 +0000 (31 07:04 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 31 Jan 2011 07:04:37 +0000 (31 07:04 +0000)
tree58680bef24e07dab0345b8a099dd35cde303b2c5
parentcc719d4bb1918ac738b074a098980bf5b21c13f5
If there were errors, disable 'unused' warnings since they will mostly be noise.
Fixes rdar://8736362.

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