From owner-freebsd-questions Sun Jan 25 23:40:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA20102 for questions-outgoing; Sun, 25 Jan 1998 23:40:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.numachi.com (numachi.numachi.com [198.175.254.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA20054 for ; Sun, 25 Jan 1998 23:40:00 -0800 (PST) (envelope-from reichert@numachi.numachi.COM) Received: (qmail 21541 invoked by uid 1001); 26 Jan 1998 07:33:15 -0000 Message-ID: <19980126023315.47723@numachi.com> Date: Mon, 26 Jan 1998 02:33:15 -0500 From: Brian Reichert To: freebsd-questions@FreeBSD.ORG Subject: gcc -Wall wierdness? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Howdy- I'm running 2.2.2-R, with gcc 2.7.2.1, and am getting a weird symptom: With this simple program: --------------------------------- #include #include void main () { printf("read failed: %s\n", strerror[0]); } --------------------------------- gcc -Wall yields, upon compiling: foo.c: In function `main': foo.c:6: warning: char format, different type arg (arg 2) So, what gives? strerror(3) says to pull in , which seems to prototype it as char *. Is this a GNU bad, or has FreeBSD done something clever, or (horrors) am I missing the point entirely? -- Brian Reichert reichert@numachi.com 37 Crystal Ave. #303 Derry NH 03038-1713 USA Intel architecture: the left-hand path