October 06, 2006 Re: Untested return values. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | Lionello Lunesu wrote:
>> A warning message with an ability to turn it off? Or as I would prefer, a warning with an ability turn it on (it's off by default)?
>
> In D, warnings are off by default. You explicitly ask for warnings using -w.
Also, in D *all* warnings are errors. So the "-w" flag to DMD is the
same as passing "-Wall -Werror" to GCC when compiling C/C++ sources.
--anders
|
Copyright © 1999-2021 by the D Language Foundation