delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/02/16:06:31

From: "Doug Eleveld" <deleveld AT dds DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP and lint-like utility
Date: 2 Feb 2001 20:21:10 GMT
Organization: Rijksuniversiteit Groningen
Lines: 28
Message-ID: <01c08d56$70ad8de0$9f247d81@doug2>
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10102011806140 DOT 879-100000 AT acp3bf>
NNTP-Posting-Host: client36-159.oprit.rug.nl
X-Trace: info.service.rug.nl 981145270 29600 129.125.36.159 (2 Feb 2001 20:21:10 GMT)
X-Complaints-To: newsmaster AT rug DOT nl
NNTP-Posting-Date: 2 Feb 2001 20:21:10 GMT
X-Newsreader: Microsoft Internet News 4.70.1155
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019