This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

%Zu problem


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]