Mail Archives: djgpp/1998/06/23/03:17:55
On Mon, 22 Jun 1998, Erik Max Francis wrote:
> > - Always compile programs with at least the flags '-Wall' and '-O';
> > the compiler can catch lots of mistakes if you let it.
>
> The optimization flag -O will catch more mistakes?
Yes, at least with GCC. Some problems are only diagnosed when the
compiler performs flow of control analysis, which is only done when you
request optimizations. One notable example is the warning about unused
variables, which is only issued with -O.
- Raw text -