lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8356] Silence some GCC warnings


From: Fatih Aşıcı
Subject: [lwip-devel] [patch #8356] Silence some GCC warnings
Date: Wed, 26 Feb 2014 08:40:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.123 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?8356>

                 Summary: Silence some GCC warnings
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: fatih
            Submitted on: Wed 26 Feb 2014 08:40:29 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Fixes the following warnings that appear when debug is enabled:

../../../../../lwip/src/api/sockets.c: In function ‘lwip_accept’:
../../../../../lwip/src/api/sockets.c:459:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:459:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:459:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:459:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c: In function ‘lwip_bind’:
../../../../../lwip/src/api/sockets.c:494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘local_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘local_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘local_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘local_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c: In function ‘lwip_connect’:
../../../../../lwip/src/api/sockets.c:568:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘remote_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:568:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘remote_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:568:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘remote_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:568:5: warning: the comparison will
always evaluate as ‘true’ for the address of ‘remote_addr’ will never
be NULL [-Waddress]
../../../../../lwip/src/api/sockets.c: In function ‘lwip_getaddrname’:
../../../../../lwip/src/api/sockets.c:1494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:1494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:1494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]
../../../../../lwip/src/api/sockets.c:1494:3: warning: the comparison will
always evaluate as ‘true’ for the address of ‘naddr’ will never be
NULL [-Waddress]

/../../../lwip/src -c ../../../../../lwip/src/netif/etharp.c
../../../../../lwip/src/netif/etharp.c: In function ‘etharp_tmr’:
../../../../../lwip/src/netif/etharp.c:221:7: warning: comparison is always
false due to limited range of data type [-Wtype-limits]
../../../../../lwip/src/netif/etharp.c: In function
‘etharp_output_to_arp_index’:
../../../../../lwip/src/netif/etharp.c:867:7: warning: comparison is always
false due to limited range of data type [-Wtype-limits]




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 26 Feb 2014 08:40:29 AM GMT  Name: 0001-Silence-GCC-warnings.patch 
Size: 2kB   By: fatih

<http://savannah.nongnu.org/patch/download.php?file_id=30704>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8356>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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