From owner-freebsd-current Wed Jul 10 16:30:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62E9A37B401; Wed, 10 Jul 2002 16:30:10 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 160E143E42; Wed, 10 Jul 2002 16:30:10 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id CF1522A7F2; Wed, 10 Jul 2002 16:30:09 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 7C0824C211; Wed, 10 Jul 2002 16:30:09 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id F007A3808; Wed, 10 Jul 2002 16:30:09 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Dag-Erling Smorgrav Cc: Bruce Evans , Giorgos Keramidas , current@FreeBSD.ORG Subject: Re: sparc64 tinderbox failure In-Reply-To: Date: Wed, 10 Jul 2002 16:30:09 -0700 From: Peter Wemm Message-Id: <20020710233010.F007A3808@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: > Bruce Evans writes: > > The main bug is that the warning is emitted. err(1, NULL) is perfectly > > valid (see err(4)). Apparently the sparc64 compiler is missing support > > for __printf0like. > > Strangely, my Alpha (July 3 -CURRENT) complains about this too, but my > i386 (June 24 -CURRENT) doesn't. Here's my test program: > > #include > > int > main(void) > { > printf(NULL); > return 0; > } > > on Alpha, I get > > des@dsa ~% gcc -Wformat -c /tmp/format.c > /tmp/format.c: In function `main': > /tmp/format.c:6: warning: null format string > > on i386, I don't get a warning. Stranger and stranger.. On sparc64 from: peter@panther[4:21pm]~-104> uname -a FreeBSD panther.freebsd.org FreeBSD 5.0-CURRENT #2: Sun Jul 7 20:52:14 PDT 2002er peter@panther[4:21pm]~-105> cat foo.c #include #include int main(void) { printf(NULL); err(1, NULL); return 0; } peter@panther[4:22pm]~-106> cc -O -Wformat -c foo.c peter@panther[4:22pm]~-107> ie: it looks like it is completely disabled. Maybe the sparc64 tinderbox host is simply out of sync with -current? Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message