curious compiler-warning

From: david mosberger <dmosberger_at_gmail.com>
Date: 2005-07-12 09:00:17
Hi Jim,

I tried to make the ia64-specific files in the Linux kernel compile
cleanly with gcc v4.0.1 and ended up with this curious warning
message:

arch/ia64/kernel/time.c:198: warning: format '%u' expects type
'unsigned int', but argument 5 has type 'unsigned int'

Argument 5 here is a bit field declared as:

  unsigned long field : 32;

and if I use a format of '%lu' (what we used so far), I also get a
warning, which wasn't the case with pre-4.x compilers.

Do you know what's wrong here?

Thanks,

  --david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jul 11 19:01:58 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST