tasklwIP - A Lightweight TCP/IP stack - Tasks: task #13108, Silence some GCC warnings (contrib)

 
 

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

task #13108: Silence some GCC warnings (contrib)

Submitter:  Fatih Aşıcı <fatih>
Submitted:  Wed 26 Feb 2014 08:50:07 AM UTC
   
 
Category:  Contrib Should Start On:  Wed 26 Feb 2014 12:00:00 AM UTC
Should be Finished on:  Wed 26 Feb 2014 12:00:00 AM UTC Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Wed 26 Feb 2014 08:45:47 PM UTC, comment #2: 

See patch #8357 instead.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 26 Feb 2014 09:17:10 AM UTC, comment #1: 

Sorry. I have sent it as a task instead of a patch.

Fatih Aşıcı <fatih>
Wed 26 Feb 2014 08:50:07 AM UTC, original submission:  

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]

Fatih Aşıcı <fatih>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

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 fatih (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-26 goldsimon Open/ClosedOpen Closed
    2014-02-26 fatih Attached File- Added 0001-Silence-GCC-warnings.patch, #30705

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code