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: http://pastie.org/private/lfdyj5prtbkyrvhddi40dq --Sean Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120616/2184a7a7/attachment.html>
On 16.06.2012, at 23:14, Sean Silva wrote:> 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: > > http://pastie.org/private/lfdyj5prtbkyrvhddi40dqAh, I missed those when cleaning up LLVM because they are only unused in Release builds. Fixed in r158608/r158609. - Ben
Reasonably Related Threads
- [LLVMdev] warnings in inline assembly with used labels and -Wunused-label
- [LLVMdev] warnings in inline assembly with used labels and -Wunused-label
- [LLVMdev] Any objections to turning on -Wunused-parameter? (and any other -Wunused-* that are off?)
- [PATCH] kvm-tool: don't add the -Wunused-result flag
- Compiling 3.13.2 under FreeBSD 11.1?