Enable -Wunused-private-field with -Wunused.

It found a lot of cruft in LLVM that I removed last week and I couldn't find any
false positives. Time to give it more testing.

llvm-svn: 158317
This commit is contained in:
Benjamin Kramer 2012-06-11 16:06:57 +00:00
parent 4e28777465
commit 697067fae9
2 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ def Unused : DiagGroup<"unused",
[UnusedArgument, UnusedFunction, UnusedLabel,
// UnusedParameter, (matches GCC's behavior)
// UnusedMemberFunction, (clean-up llvm before enabling)
// UnusedPrivateField, (clean-up llvm before enabling)
UnusedPrivateField,
UnusedValue, UnusedVariable]>,
DiagCategory<"Unused Entity Issue">;

View File

@ -54,7 +54,7 @@ namespace rdar7853795 {
}
namespace rdar7796492 {
class A { int x, y; A(); };
struct A { int x, y; A(); };
A::A()
: x(1) y(2) { // expected-error{{missing ',' between base or member initializers}}