From owner-cvs-all Sun Dec 13 22:45:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10500 for cvs-all-outgoing; Sun, 13 Dec 1998 22:45:08 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10495 for ; Sun, 13 Dec 1998 22:45:06 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id WAA18368; Sun, 13 Dec 1998 22:44:21 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma018366; Sun, 13 Dec 98 22:43:53 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id WAA06275; Sun, 13 Dec 1998 22:43:53 -0800 (PST) From: Archie Cobbs Message-Id: <199812140643.WAA06275@bubba.whistle.com> Subject: Re: -Wunused kernel build In-Reply-To: <199812140635.RAA03001@godzilla.zeta.org.au> from Bruce Evans at "Dec 14, 98 05:35:39 pm" To: bde@zeta.org.au (Bruce Evans) Date: Sun, 13 Dec 1998 22:43:53 -0800 (PST) Cc: dillon@apollo.backplane.com, cvs-committers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Bruce Evans writes: > -Wall is feeble compared with the warnings already enabled for the > kernel. E.g., it doesn't cover printf() with missing args -- -Wformat > covers that. Huh? Works for me.. $ cat xx.c #include int main(int ac, char **av) { printf("%s\n"); } $ gcc --version 2.7.2.1 $ gcc -Wall xx.c xx.c: In function `main': xx.c:5: warning: too few arguments for format xx.c:6: warning: control reaches end of non-void function -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message