mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fixed compiler warning when LWIP_SNMP==0
This commit is contained in:
parent
94cbed5096
commit
e25c9f7951
@ -596,11 +596,13 @@ netif_loop_output(struct netif *netif, struct pbuf *p,
|
|||||||
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
|
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
|
||||||
/* If we have a loopif, SNMP counters are adjusted for it,
|
/* If we have a loopif, SNMP counters are adjusted for it,
|
||||||
* if not they are adjusted for 'netif'. */
|
* if not they are adjusted for 'netif'. */
|
||||||
|
#if LWIP_SNMP
|
||||||
#if LWIP_HAVE_LOOPIF
|
#if LWIP_HAVE_LOOPIF
|
||||||
struct netif *stats_if = &loop_netif;
|
struct netif *stats_if = &loop_netif;
|
||||||
#else /* LWIP_HAVE_LOOPIF */
|
#else /* LWIP_HAVE_LOOPIF */
|
||||||
struct netif *stats_if = netif;
|
struct netif *stats_if = netif;
|
||||||
#endif /* LWIP_HAVE_LOOPIF */
|
#endif /* LWIP_HAVE_LOOPIF */
|
||||||
|
#endif /* LWIP_SNMP */
|
||||||
SYS_ARCH_DECL_PROTECT(lev);
|
SYS_ARCH_DECL_PROTECT(lev);
|
||||||
LWIP_UNUSED_ARG(ipaddr);
|
LWIP_UNUSED_ARG(ipaddr);
|
||||||
|
|
||||||
@ -676,11 +678,13 @@ netif_poll(struct netif *netif)
|
|||||||
struct pbuf *in;
|
struct pbuf *in;
|
||||||
/* If we have a loopif, SNMP counters are adjusted for it,
|
/* If we have a loopif, SNMP counters are adjusted for it,
|
||||||
* if not they are adjusted for 'netif'. */
|
* if not they are adjusted for 'netif'. */
|
||||||
|
#if LWIP_SNMP
|
||||||
#if LWIP_HAVE_LOOPIF
|
#if LWIP_HAVE_LOOPIF
|
||||||
struct netif *stats_if = &loop_netif;
|
struct netif *stats_if = &loop_netif;
|
||||||
#else /* LWIP_HAVE_LOOPIF */
|
#else /* LWIP_HAVE_LOOPIF */
|
||||||
struct netif *stats_if = netif;
|
struct netif *stats_if = netif;
|
||||||
#endif /* LWIP_HAVE_LOOPIF */
|
#endif /* LWIP_HAVE_LOOPIF */
|
||||||
|
#endif /* LWIP_SNMP */
|
||||||
SYS_ARCH_DECL_PROTECT(lev);
|
SYS_ARCH_DECL_PROTECT(lev);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user