From: Jesse Millan <jessem@cs.pdx.edu>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] stumped... implicitly truncated warning mystery
Date: Wed, 06 Jul 2005 17:48:46 +0000 [thread overview]
Message-ID: <42CC197E.2030207@cs.pdx.edu> (raw)
Hey all,
GCC4.0.0 is giving me a warning that I cant seem to get rid of. In the
file drivers/net/wireless/wavelan_cs.c on lines 3607 and 3608 is the
following assignment:
cfblk.ifrm_spc = 0x20;
cfblk.slottim_low = 0x20;
where ifrm_spc and slottim_low are both of type unsigned char.
Compiling on a X86_64 emits the warning: large integer implicitly
truncated to unsigned type.
Explicitly casting 0x20 to unsigned char or u_char does not get rid of
the warning. Also, the warning starts at values 0x10 and above.
Any ideas/leads would be greatly appreciated.
--
Jesse Millan
CNS Unix Team
Portland State University
Phone: (503) 725-9151
Mobile: (503) 453-0748
GPG key: www.system-calls.com/gpg.php
grep --recursive --ignore-case 'SHOULD WORK' /usr/src/linux/* | wc
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2005-07-06 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 17:48 Jesse Millan [this message]
2005-07-06 18:01 ` [KJ] stumped... implicitly truncated warning mystery Dave Jones
2005-07-06 18:03 ` Jesse Millan
2005-07-06 18:24 ` Alexey Dobriyan
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=42CC197E.2030207@cs.pdx.edu \
--to=jessem@cs.pdx.edu \
--cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.