buglwIP - A Lightweight TCP/IP stack - Bugs: bug #54006, Two compiler warnings on IAR when...

 
 

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

bug #54006: Two compiler warnings on IAR when debug is enabled

Submitter:  Ray Ozzie <rozzie>
Submitted:  Tue 29 May 2018 08:37:39 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.0.3

Mon 11 Jun 2018 06:12:06 PM UTC, comment #1: 

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 29 May 2018 08:37:39 PM UTC, original submission:  

Super low priority because this only occurs when debug is enabled.

This is a just-discovered continuation of #53952, with the identical context.

The two in ip4.c are likely fixed by just using your new _value macros.

The one in utils.c is just strange.

Thx for consideration.


ip4.c

src\core\ipv4\ip4.c(1071) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1071) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1071) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1071) : Warning[Pa039]: use of address of unaligned structure member
  LWIP_DEBUGF(IP_DEBUG, ("|  %3"U16_F"  |  %3"U16_F"  |  %3"U16_F"  |  %3"U16_F"  | (src)\n",
                    ip4_addr1_16(&iphdr->src),
                    ip4_addr2_16(&iphdr->src),
                    ip4_addr3_16(&iphdr->src),
                    ip4_addr4_16(&iphdr->src)));

src\core\ipv4\ip4.c(1077) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1077) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1077) : Warning[Pa039]: use of address of unaligned structure member
src\core\ipv4\ip4.c(1077) : Warning[Pa039]: use of address of unaligned structure member
  LWIP_DEBUGF(IP_DEBUG, ("|  %3"U16_F"  |  %3"U16_F"  |  %3"U16_F"  |  %3"U16_F"  | (dest)\n",
                    ip4_addr1_16(&iphdr->dest),
                    ip4_addr2_16(&iphdr->dest),
                    ip4_addr3_16(&iphdr->dest),
                    ip4_addr4_16(&iphdr->dest)));


utils.c

C:\Users\ray\dev\anjay\Middlewares\Third_Party\LwIP\src\netif\ppp\utils.c(617) : Warning[Pa134]: left and right operands are identical
    PPPDEBUG(level, ("%s\n", buf) );



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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-11 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code