lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8357] Silence some GCC warnings (contrib)


From: Fatih Aşıcı
Subject: [lwip-devel] [patch #8357] Silence some GCC warnings (contrib)
Date: Wed, 26 Feb 2014 09:19:18 +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/?8357>

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

    _______________________________________________________

Details:

unixsim Makefile uses -Werror. It can be built now without errors. 

Fixes the following GCC warnings: 

/../../../lwip/src -c ../../../../../lwip/src/api/tcpip.c 
../../../../../lwip/src/api/tcpip.c: In function ‘tcpip_input’: 
../../../../../lwip/src/api/tcpip.c:191:8: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
../../../../../lwip/src/api/tcpip.c: In function
‘tcpip_callback_with_block’: 
../../../../../lwip/src/api/tcpip.c:226:7: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
../../../../../lwip/src/api/tcpip.c: In function ‘tcpip_timeout’: 
../../../../../lwip/src/api/tcpip.c:262:7: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
../../../../../lwip/src/api/tcpip.c: In function ‘tcpip_untimeout’: 
../../../../../lwip/src/api/tcpip.c:291:7: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
../../../../../lwip/src/api/tcpip.c: In function ‘tcpip_apimsg’: 
../../../../../lwip/src/api/tcpip.c:325:7: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
../../../../../lwip/src/api/tcpip.c: In function ‘tcpip_trycallback’: 
../../../../../lwip/src/api/tcpip.c:433:8: warning: the comparison will always
evaluate as ‘true’ for the address of ‘mbox’ will never be NULL
[-Waddress] 
/../../../lwip/src -c ../../../../apps/udpecho/udpecho.c 
../../../../apps/udpecho/udpecho.c: In function ‘udpecho_thread’: 
../../../../apps/udpecho/udpecho.c:49:25: warning: variable ‘port’ set but
not used [-Wunused-but-set-variable] 
../../../../apps/udpecho/udpecho.c:48:21: warning: variable ‘addr’ set but
not used [-Wunused-but-set-variable] 
appears when IPv6 enabled: 
/../../../lwip/src -c ../../../../ports/unix/netif/tcpdump.c 
../../../../ports/unix/netif/tcpdump.c: In function ‘tcpdump’: 
../../../../ports/unix/netif/tcpdump.c:71:7: warning: unused variable
‘offset’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:70:7: warning: unused variable
‘len’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:69:7: warning: unused variable ‘i’
[-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:68:8: warning: unused variable
‘flags’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:66:19: warning: unused variable
‘udphdr’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:64:19: warning: unused variable
‘tcphdr’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:63:18: warning: unused variable
‘iphdr’ [-Wunused-variable] 
../../../../ports/unix/netif/tcpdump.c:61:22: warning: unused parameter
‘p’ [-Wunused-parameter] 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 26 Feb 2014 09:19:16 AM GMT  Name: 0001-Silence-GCC-warnings.patch 
Size: 2kB   By: fatih

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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