From owner-freebsd-hackers Wed Apr 24 14:21:33 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA26495 for hackers-outgoing; Wed, 24 Apr 1996 14:21:33 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA26481 for ; Wed, 24 Apr 1996 14:21:23 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA10985; Wed, 24 Apr 1996 23:19:49 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA28979; Wed, 24 Apr 1996 23:19:48 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id WAA28082; Wed, 24 Apr 1996 22:46:16 +0200 (MET DST) From: J Wunsch Message-Id: <199604242046.WAA28082@uriah.heep.sax.de> Subject: Re: GNU binutils port To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Wed, 24 Apr 1996 22:46:15 +0200 (MET DST) Cc: msmith@atrad.adelaide.edu.au (Michael Smith) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199604241157.VAA19097@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Apr 24, 96 09:27:21 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)