Subject: Re: Beginner C Programming Questions
To: Jeff Flowers <jeffrey@jeffreyf.net>
From: Chris Lloyd <strawberry@toth.org.uk>
List: netbsd-help
Date: 04/19/2002 20:05:40
On Fri, Apr 19, 2002 at 12:56:26PM -0400, Jeff Flowers wrote:
> >NetBSD comes with a lint program, but
> >*personally* I never use it. The warning
> >switches for the GNU compiler generally
> >catch most of my sillier errors. Consider
> >including -Wall and -Werror while
> >developing, and -Wall for software you
> >distribute to others (especially for those
> >on different Unix variants).
> 
> -Wall, if I remember right, forces strict ANSI compliance, correct? (My C
> books are at home and I am at work). I don't think I've heard of -Werror.

-ansi and -pedantic together will enforce ansi compliance
-Werror will treat warnings as errors and halt the compile

 - Chris

--
strawberry@toth.org.uk
http://www.toth.org.uk/~strawberry