mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
fixed some obvious compiler warnings
lwip/src/include/lwip/autoip.h:52:1: error: C++ style comments are not allowed in ISO C90 [-Werror] //#include "lwip/udp.h" lwip/src/core/ipv4/autoip.c:70:1: error: C++ style comments are not allowed in ISO C90 [-Werror] //#include "lwip/udp.h" lwip/src/include/lwip/api.h:239:25: error: declaration of ‘lev’ shadows a previous local [-Werror=shadow] SYS_ARCH_DECL_PROTECT(lev); \
This commit is contained in:
parent
ce7e31cd04
commit
135631d29d
@ -67,7 +67,7 @@
|
|||||||
#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
//#include "lwip/udp.h"
|
/* #include "lwip/udp.h" */
|
||||||
#include "lwip/ip_addr.h"
|
#include "lwip/ip_addr.h"
|
||||||
#include "lwip/netif.h"
|
#include "lwip/netif.h"
|
||||||
#include "lwip/autoip.h"
|
#include "lwip/autoip.h"
|
||||||
|
@ -236,12 +236,12 @@ struct netconn {
|
|||||||
|
|
||||||
/** Set conn->last_err to err but don't overwrite fatal errors */
|
/** Set conn->last_err to err but don't overwrite fatal errors */
|
||||||
#define NETCONN_SET_SAFE_ERR(conn, err) do { if ((conn) != NULL) { \
|
#define NETCONN_SET_SAFE_ERR(conn, err) do { if ((conn) != NULL) { \
|
||||||
SYS_ARCH_DECL_PROTECT(lev); \
|
SYS_ARCH_DECL_PROTECT(netconn_set_safe_err_lev); \
|
||||||
SYS_ARCH_PROTECT(lev); \
|
SYS_ARCH_PROTECT(netconn_set_safe_err_lev); \
|
||||||
if (!ERR_IS_FATAL((conn)->last_err)) { \
|
if (!ERR_IS_FATAL((conn)->last_err)) { \
|
||||||
(conn)->last_err = err; \
|
(conn)->last_err = err; \
|
||||||
} \
|
} \
|
||||||
SYS_ARCH_UNPROTECT(lev); \
|
SYS_ARCH_UNPROTECT(netconn_set_safe_err_lev); \
|
||||||
}} while(0);
|
}} while(0);
|
||||||
|
|
||||||
/* Network connection functions: */
|
/* Network connection functions: */
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_IPV4 && LWIP_AUTOIP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
#include "lwip/netif.h"
|
#include "lwip/netif.h"
|
||||||
//#include "lwip/udp.h"
|
/* #include "lwip/udp.h" */
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user