Warn about more than the first unused variable when -Werror is set.
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 28 Mar 2013 21:46:45 +0000 (21:46 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 28 Mar 2013 21:46:45 +0000 (21:46 +0000)
commit8f51121866c34a9d805a4e43be74c681b728b8a5
tree8c3d750bb4ffb6d5096bbaf779c45f63f96b1225
parent6c75232cf0922dd284180f0a876498f0ba57c15d
Warn about more than the first unused variable when -Werror is set.

To do this, thread DiagnosticErrorTrap's hasUnrecoverableErrorOccurred through
to Scope.

llvm-svn: 178294
clang/include/clang/Sema/Scope.h
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/warn-unused-variables-werror.c [new file with mode: 0644]