From: Dave Jones <davej@redhat.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] stumped... implicitly truncated warning mystery
Date: Wed, 06 Jul 2005 18:01:02 +0000 [thread overview]
Message-ID: <20050706180101.GB24129@redhat.com> (raw)
In-Reply-To: <42CC197E.2030207@cs.pdx.edu>
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
On Wed, Jul 06, 2005 at 10:48:46AM -0700, Jesse Millan wrote:
>
> 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.
No, look again. They are bitfields.
u_char : 4,
ifrm_spc : 4;
4 bits isn't enough space to encode 0x20 which is 0b100000
u_char : 5,
slottim_low : 3;
Likewise, 3 bits is too small.
Dave
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-07-06 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 17:48 [KJ] stumped... implicitly truncated warning mystery Jesse Millan
2005-07-06 18:01 ` Dave Jones [this message]
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=20050706180101.GB24129@redhat.com \
--to=davej@redhat.com \
--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.