lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #13108] Silence some GCC warnings (contrib)


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

                 Summary: Silence some GCC warnings (contrib)
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: fatih
            Submitted on: Wed 26 Feb 2014 08:50:07 AM GMT
                Category: Contrib
         Should Start On: Wed 26 Feb 2014 12:00:00 AM GMT
   Should be Finished on: Wed 26 Feb 2014 12:00:00 AM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                  Effort: 0.00

    _______________________________________________________

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 08:50:07 AM GMT  Name: 0001-Silence-GCC-warnings.patch 
Size: 2kB   By: fatih

<http://savannah.nongnu.org/task/download.php?file_id=30705>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?13108>

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




reply via email to

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