On Wednesday, 16 January 2013 at 12:05:49 UTC, Jacob Carlborg wrote:
On 2013-01-16 12:17, mist wrote:

Yes and this is the very difference between compiler and static analysis tool, in my opinion. Compiler should never ever reject valid use cases,
it does not matter how small chance of meeting those is.

Clang contains a ton of warnings for code that could contain common errors. I mean, there's nothing wrong in having unreferenced variables but there are still compilers that warn about this.

Also not that Clang has a static analyzer, in addition to the warnings and errors in the compiler.

Well, that is probably the only thing I hate in Clang :) Also, I can't imagine a single valid use case for unreferenced variables in C/C++, so it is a bit different.

Reply via email to