Skip site navigation (1)Skip section navigation (2)
Date:      10 Jul 2002 23:58:49 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Giorgos Keramidas <keramida@FreeBSD.ORG>, <current@FreeBSD.ORG>
Subject:   Re: sparc64 tinderbox failure
Message-ID:  <xzp4rf7mehy.fsf@flood.ping.uio.no>
In-Reply-To: <20020711071853.J21320-100000@gamplex.bde.org>
References:  <20020711071853.J21320-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> 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 <stdio.h>

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.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp4rf7mehy.fsf>