Date: Wed, 24 Apr 1996 22:46:15 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Cc: msmith@atrad.adelaide.edu.au (Michael Smith) Subject: Re: GNU binutils port Message-ID: <199604242046.WAA28082@uriah.heep.sax.de> In-Reply-To: <199604241157.VAA19097@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Apr 24, 96 09:27:21 pm
next in thread | previous in thread | raw e-mail | index | archive | help
As Michael Smith wrote:
> gcc -Wall is _pedantic_. Consider how many of the above are
> "Consider parentheses around assignment used as truth value", or
This is something all good compilers warn, since it's perhaps one of
the most common errors for C programmers to forget one `=' in a
comparision.
> "Integer used as pointer without a cast" (for use of '0' as a [legitimate]
> substitute for NULL.
Huh?
j@uriah 114% cat > foo.c
int foo(void)
{
char *bar;
bar = 0;
return 23 * *bar;
}
j@uriah 115% cc -c -Wall -pedantic foo.c
j@uriah 116%
No warning.
--
cheers, J"org
joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604242046.WAA28082>
