lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #54006] Two compiler warnings on IAR when debug is ena


From: Ray Ozzie
Subject: [lwip-devel] [bug #54006] Two compiler warnings on IAR when debug is enabled
Date: Tue, 29 May 2018 16:37:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?54006>

                 Summary: Two compiler warnings on IAR when debug is enabled
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: rozzie
            Submitted on: Tue 29 May 2018 08:37:39 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.0.3

    _______________________________________________________

Details:

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) );







    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?54006>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]