Fairly recently clang picked up a -Wunused-private-field warning that does what you would expect. Compiling LLVM and clang with a recent clang spits out the following warnings:<div><br></div><div><a href="http://pastie.org/private/lfdyj5prtbkyrvhddi40dq">http://pastie.org/private/lfdyj5prtbkyrvhddi40dq</a></div>
<div><br></div><div>--Sean Silva</div>