Mail Archives: djgpp/1999/01/06/14:40:37
Shawn Hargreaves wrote:
> > And how is a compiler to recognize an option to disable a warning which
> > won't exist until a future version?
>
> Obviously it cannot :-) That is why I think these new warnings should
> not be enabled by default: it is easy for users of that specific
> compiler to enable them by using an extra switch, but impossible for
> them to be turned off by the authors of code that must support
> multiple compiler versions...
But that would mean that people compiling their own little projects who
want them checked fully must do something like:
gcc -c -O -Wall -W -Wfoo -Wbar -Wqux -Wfred -Wbarney -Wpeanuts
-Wgod-only-knows -Wcheese -W......
Not exactly convenient.
TANSTAAFL
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -