buglwIP - A Lightweight TCP/IP stack - Bugs: bug #54190, Minor compile warnings under...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #54190: Minor compile warnings under newly-released IAR EWARM 8.30.1

Submitter:  Ray Ozzie <rozzie>
Submitted:  Tue 26 Jun 2018 08:35:11 PM UTC
   
 
Category:  Platform ports Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  2.1.0
lwIP version:  2.0.3

Tue 03 Jul 2018 06:54:09 PM UTC, comment #4: 
Simon Goldschmidt <goldsimon>
Group administrator
Thu 28 Jun 2018 07:25:18 PM UTC, comment #3: 

On 27.06.2018 22:12, Ray Ozzie wrote:

> 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.


Simon Goldschmidt <goldsimon>
Group administrator
Wed 27 Jun 2018 06:47:46 PM UTC, comment #2: 

As always, I'm lost with IAR warnings when I don't have IAR around to check what fixes them....

Simon Goldschmidt <goldsimon>
Group administrator
Wed 27 Jun 2018 03:02:27 PM UTC, comment #1: 

Reports like this are welcome. Even more welcom if the line would match git master instead of 2.0.3 :-)

Simon Goldschmidt <goldsimon>
Group administrator
Tue 26 Jun 2018 08:35:11 PM UTC, original submission:  

I try to keep my projects clean of warnings because of the distraction factor.  I know this is super minor and fixable with just a cast, but I thought you'd want to fix.

sockets.c 
Warning[Pa182]: bitwise operation drops significant bits from a constant C:\Users\ray\dev\notebox\nbc\rtos\lwip\src\api\sockets.c 2373
Warning[Pa182]: bitwise operation drops significant bits from a constant C:\Users\ray\dev\notebox\nbc\rtos\lwip\src\api\sockets.c 2474

tcp_in.c 
Warning[Pa182]: bitwise operation drops significant bits from a constant C:\Users\ray\dev\notebox\nbc\rtos\lwip\src\core\tcp_in.c 1396
Warning[Pa182]: bitwise operation drops significant bits from a constant C:\Users\ray\dev\notebox\nbc\rtos\lwip\src\core\tcp_in.c 1652

Ray Ozzie <rozzie>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by rozzie (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-03 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.1.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code