[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #8185] Address C++11 Reserved User-defined Literal E
From: |
Grant Erickson |
Subject: |
[lwip-devel] [patch #8185] Address C++11 Reserved User-defined Literal Errors |
Date: |
Fri, 20 Sep 2013 20:30:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 |
URL:
<http://savannah.nongnu.org/patch/?8185>
Summary: Address C++11 Reserved User-defined Literal Errors
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: marathon96
Submitted on: Fri 20 Sep 2013 08:30:31 PM 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:
This patch addresses the following error when compiled
against clang/LLVM 3.3 with -std=c++11:
error: invalid suffix on literal; C++11 requires a space between literal and
identifier [-Wreserved-user-defined-literal]
diff --git a/src/include/ipv4/lwip/ip4_addr.h
b/src/include/ipv4/lwip/ip4_addr.h
index b05ae53..923d4b0 100644
--- a/src/include/ipv4/lwip/ip4_addr.h
+++ b/src/include/ipv4/lwip/ip4_addr.h
@@ -210,7 +210,7 @@ u8_t ip4_addr_netmask_valid(u32_t netmask);
#define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL))
== PP_HTONL(0xa9fe0000UL))
#define ip_addr_debug_print(debug, ipaddr) \
- LWIP_DEBUGF(debug, ("%"U16_F".%"U16_F".%"U16_F".%"U16_F, \
+ LWIP_DEBUGF(debug, ("%" U16_F ".%" U16_F ".%" U16_F ".%" U16_F, \
ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
diff --git a/src/include/ipv6/lwip/ip6_addr.h
b/src/include/ipv6/lwip/ip6_addr.h
index 89b5b81..8a540d4 100644
--- a/src/include/ipv6/lwip/ip6_addr.h
+++ b/src/include/ipv6/lwip/ip6_addr.h
@@ -260,7 +260,7 @@ Little-endian version, stored in network order (no htonl).
*/
#define ip6_addr_isdeprecated(addr_state) (addr_state ==
IP6_ADDR_DEPRECATED)
#define ip6_addr_debug_print(debug, ipaddr) \
- LWIP_DEBUGF(debug,
("%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X16_F, \
+ LWIP_DEBUGF(debug, ("%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F ":%" X16_F
":%" X16_F ":%" X16_F ":%" X16_F, \
ipaddr != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0, \
ipaddr != NULL ? IP6_ADDR_BLOCK2(ipaddr) : 0, \
ipaddr != NULL ? IP6_ADDR_BLOCK3(ipaddr) : 0, \
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 20 Sep 2013 08:30:31 PM GMT Name:
reserved-user-defined-literal-0001.0.patch Size: 2kB By: marathon96
<http://savannah.nongnu.org/patch/download.php?file_id=29186>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?8185>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [patch #8185] Address C++11 Reserved User-defined Literal Errors,
Grant Erickson <=