Wish: Variable Not Used Warning

Markus Koskimies markus at reaaliaika.net
Thu Jul 10 13:56:25 PDT 2008


On Thu, 10 Jul 2008 15:51:52 -0400, Nick Sabalausky wrote:

> In other words, treating warnings as errors (at least if it's all the
> time) or turning warnings into errors creates a need to supress the
> warnings. And in cases like these, supressing them ends up defeating the
> whole point of having them in the first place.

I understand your point, and that's why my suggestion would be that the 
compiler has flag to relax (warnings as warnings) when sketching the 
code :) (sure it is just the same if compiler is relaxed or strict by 
default, but the whole point is if the warnings are needed or not).

The current DMD -release -flag would be good point to turn warnings to 
errors, but unfortunately it removes runtime checks :(



More information about the Digitalmars-d mailing list