Mail Archives: djgpp/2001/02/02/16:06:31
Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> schreef in artikel
<Pine DOT LNX DOT 4 DOT 10 DOT 10102011806140 DOT 879-100000 AT acp3bf>...
> On Thu, 1 Feb 2001, Eli Zaretskii wrote:
>
> >
> > On 1 Feb 2001, Hans-Bernhard Broeker wrote:
> >
> > > If you want a 'lint' emulation, you need a whole slew of further
> > > options to GCC. Here's my personal favourite at this moment:
> > >
> > > CFLAGS='-g -Wall -O2 \
> > > -Dgets=DONT_USE_GETS -Dscanf=DONT_USE_SCANF -Dlint -Wtraditional
-Wshadow \
> > > -Wpointer-arith -Wnested-externs -Winline -W -Wstrict-prototypes \
> > > -Wmissing-prototypes -Wmissing-declarations'
> >
> > And add -Werror for a good measure ;-)
>
> I'd rather not. With this combination of -W flags, it's *extremely* hard
> to get by without a single warning. Adding -Werror, here, would over-do
It depends really. Almost all my sources compile with -Wall -W -pedantic
and I get 0 warnings. It really help you understand the code that you are
writing. I make sure I address every warning.
Doug
- Raw text -