This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
%Zu problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: %Zu problem
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: Tue, 4 Jul 2000 03:05:12 -0700 (PDT)
Hi,
If I compile the following code with -Wall using current GCC 2.96 I
will get a warning. This seems to affect all architectures. The
Linux kernel is affected by this.
#include <stdio.h>
typedef unsigned int __foo_t;
int main (void) { __foo_t x; printf ("%Zu", x); return 0; }
/tmp/@29765.1: In function `main':
/tmp/@29765.1:3: warning: unsigned int format, __foo_t arg (arg 2)
Ulf