Wish: Variable Not Used Warning
Markus Koskimies
markus at reaaliaika.net
Thu Jul 10 14:14:53 PDT 2008
On Thu, 10 Jul 2008 15:20:54 -0400, Nick Sabalausky wrote:
About that "warnings as errors"; for me the reason for that behavior is
that I usually include executing the code to the command line when coding
(and use up arrow to rerun it, if the compiler didn't accept my code):
$ make && ./myProgram
If the compiler does not stop for warnings, I'd need some sort of build
log to examine the warnings after execution. But if the compiler returns
error value (like -1) when meeting warnings, the program was not executed
and I can easily examine the reasons.
This same happens of course with IDEs, when using "Run" instead of first
compiling/building the software.
> Also, while I
> can't confirm or deny this at the moment, someone here said that -w
> compiles currently halt at the first warning.
No, it shows all warnings it generates. But IMO it does not generate
enough warnings.
More information about the Digitalmars-d
mailing list