Date: Wed, 13 Jun 2001 22:34:09 +0200 From: Jens Schweikhardt <schweikh@schweikhardt.net> To: Sheldon Hearn <sheldonh@starjuice.net> Cc: Jens Schweikhardt <schweikh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdio printf.3 Message-ID: <20010613223409.C6129@schweikhardt.net> In-Reply-To: <76631.992460492@axl.seasidesoftware.co.za>; from sheldonh@starjuice.net on Wed, Jun 13, 2001 at 09:28:12PM %2B0200 References: <200106131905.f5DJ5D949883@freefall.freebsd.org> <76631.992460492@axl.seasidesoftware.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon,
On Wed, Jun 13, 2001 at 09:28:12PM +0200, Sheldon Hearn wrote:
# On Wed, 13 Jun 2001 12:05:13 MST, Jens Schweikhardt wrote:
#
# > Modified files:
# > lib/libc/stdio printf.3
# > Log:
# > Add description for the 'll' modifier for long long. In essence a copy
# > from the 'l' description with s/long/long long/g.
#
# Now just to get gcc to accept it without bitching on -Wformat. :-)
It doesn't bitch here:
schweikh@hal9000:~ $ cat tst.c
#include <stdio.h>
int
main (void)
{
long long ll = -1;
printf ("%lld\n", ll);
return 0;
}
schweikh@hal9000:~ $ gcc -Wformat tst.c
schweikh@hal9000:~ $ gcc -v
Using builtin specs.
gcc version 2.95.3 20010315 (release)
schweikh@hal9000:~ $ uname -a
FreeBSD hal9000.schweikhardt.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Jun 7 23:20:39 CEST 2001 toor@hal9000.schweikhardt.net:/usr/obj/usr/src/sys/HAL9000 i386
Use %ld with long long and you'll get
tst.c: In function `main':
tst.c:6: warning: long int format, different type arg (arg 2)
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010613223409.C6129>
