From owner-freebsd-hackers Wed Apr 24 15:52:01 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA06721 for hackers-outgoing; Wed, 24 Apr 1996 15:52:01 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA06693 for ; Wed, 24 Apr 1996 15:51:57 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id IAA24720; Thu, 25 Apr 1996 08:49:48 +1000 Date: Thu, 25 Apr 1996 08:49:48 +1000 From: Bruce Evans Message-Id: <199604242249.IAA24720@godzilla.zeta.org.au> To: msmith@atrad.adelaide.edu.au, terry@lambert.org Subject: Re: GNU binutils port Cc: bde@zeta.org.au, freebsd-hackers@freebsd.org, jmacd@CS.Berkeley.EDU Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> gcc -Wall is _pedantic_. Consider how many of the above are Nah. It's not even pedantic. ``gcc \ -Wall -ansi -pedantic \ -Wbad-function-cast \ -Wcast-align \ -Wcast-qual \ -Wchar-subscripts \ -Wconversion \ -Werror \ -Winline \ -Wmissing-declarations \ -Wmissing-prototypes \ -Wnested-externs \ -Wpointer-arith \ -Wredundant-decls \ -Wshadow \ -Wstrict-prototypes \ -Wwrite-strings # Use these for code that has to be compilable with K&R compilers: # -Waggregate-return -Wid-clash-7 -Wtraditional'' is _pedantic_. I use something like the above in my gccw script. >> "Consider parentheses around assignment used as truth value", or I like this. OTOH, I hate the one about && vs || and always turn it off in my local cc1 binaries. >> "Integer used as pointer without a cast" (for use of '0' as a [legitimate] >> substitute for NULL. I haven't seen this. ANSI defines null pointer constants quite well and gcc implements them quite well. Bruce