public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: david mosberger <dmosberger@gmail.com>
To: linux-ia64@vger.kernel.org
Subject: curious compiler-warning
Date: Mon, 11 Jul 2005 23:00:17 +0000	[thread overview]
Message-ID: <ed5aea430507111600684085cc@mail.gmail.com> (raw)

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

             reply	other threads:[~2005-07-11 23:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 23:00 david mosberger [this message]
2005-07-12  1:55 ` curious compiler-warning James E Wilson
2005-07-12  4:17 ` david mosberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed5aea430507111600684085cc@mail.gmail.com \
    --to=dmosberger@gmail.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox