[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] [bug #54190] Minor compile warnings under newly-release
From: |
Ray Ozzie |
Subject: |
Re: [lwip-devel] [bug #54190] Minor compile warnings under newly-released IAR EWARM 8.30.1 |
Date: |
Wed, 27 Jun 2018 20:12:23 +0000 |
I apologize for not being able to make this easier.
Although I haven’t tested any fixes myself, it appears that the core issue is
the technique of generating a ~ mask from a constant (Ie interpreted by the
compiler as size_t or whatnot), and then assigning the masked value into
something smaller (ie uint8) is flagged as potentially losing significant bits.
I believe a cast may be needed on all these mask ops.
If you have anything you’d like me to try, I’m happy to take the fix and tweak
it as necessary and get it back to you.
Thanks much.
> On Jun 27, 2018, at 11:47 AM, Simon Goldschmidt <address@hidden> wrote:
>
> Follow-up Comment #2, bug #54190 (project lwip):
>
> As always, I'm lost with IAR warnings when I don't have IAR around to check
> what fixes them....
>
> _______________________________________________________
>
> Reply to this item at:
>
> <http://savannah.nongnu.org/bugs/?54190>
>
> _______________________________________________
> Message sent via Savannah
> https://savannah.nongnu.org/
>