[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9289] sockets: lwip_recv_tcp_from: Fix build warnin
From: |
Axel Lin |
Subject: |
[lwip-devel] [patch #9289] sockets: lwip_recv_tcp_from: Fix build warning |
Date: |
Wed, 22 Mar 2017 11:12:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 |
URL:
<http://savannah.nongnu.org/patch/?9289>
Summary: sockets: lwip_recv_tcp_from: Fix build warning
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: axellin
Submitted on: Wed 22 Mar 2017 03:12:12 PM UTC
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
The address of 'tmpaddr' will never be NULL, thus use
ip_addr_debug_print_val.
This fixes below build warning:
src/api/sockets.c: In function 'lwip_recv_tcp_from':
src/include/lwip/ip4_addr.h:164:40: warning: the comparison will always
evaluate as 'true' for the address of 'tmpaddr' will never be NULL
[-Waddress]
(u16_t)((ipaddr) != NULL ? ip4_addr1_16(ipaddr) : 0),
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 22 Mar 2017 03:12:12 PM UTC Name:
0001-sockets-lwip_recv_tcp_from-Fix-build-warning.patch Size: 1kB By:
axellin
<http://savannah.nongnu.org/patch/download.php?file_id=40064>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9289>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9289] sockets: lwip_recv_tcp_from: Fix build warning,
Axel Lin <=