This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/89: Re: %zd not recognised correctly
- To: gcc-gnats at sourceware dot cygnus dot com
- Subject: c/89: Re: %zd not recognised correctly
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 8 Mar 2000 22:06:21 +0100
- References: <u8bt4ptz36.fsf@gromit.rhein-neckar.de>
- Resent-Cc: gcc-prs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>Number: 89
>Category: c
>Synopsis: %zd not recognised correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 08 13:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Andreas Jaeger <aj@suse.de>
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Date: 08 Mar 2000 13:39:57 +0100
Original-Message-ID: <u8bt4ptz36.fsf@gromit.rhein-neckar.de>
Lines: 31
The following simple program:
#include <stdio.h>
int
main (void)
{
size_t i;
i = 0;
printf ("%zd", i);
return 0;
}
gives this warning:
$ /opt/gcc-2.96/bin/gcc -Wall testz.c
testz.c: In function `main':
testz.c:9: warning: unsigned int format, size_t arg (arg 2)
I'm using gcc CVS current (with strlensi patch from Jan Hubicka):
/opt/gcc-2.96/bin/gcc -v
Reading specs from /opt/gcc-2.96/lib/gcc-lib/i686-pc-linux-gnu/2.96/specs
gcc version 2.96 20000307 (experimental)
My system: Linux 2.2.14, glibc 2.1.3, i686.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: