mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
lowpan6.c: Fix ‘lowpan6_context_lookup’ defined but not used build warning
Fix build warning with LWIP_6LOWPAN_NUM_CONTEXTS==0. lowpan6_context_lookup() is only used when LWIP_6LOWPAN_IPHC && LWIP_6LOWPAN_NUM_CONTEXTS > 0. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
49acdae8d0
commit
2e2c607727
@ -146,11 +146,10 @@ dequeue_datagram(struct lowpan6_reass_helper *lrh)
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
#if LWIP_6LOWPAN_IPHC
|
||||
#if LWIP_6LOWPAN_IPHC && LWIP_6LOWPAN_NUM_CONTEXTS > 0
|
||||
static s8_t
|
||||
lowpan6_context_lookup(const ip6_addr_t *ip6addr)
|
||||
{
|
||||
#if LWIP_6LOWPAN_NUM_CONTEXTS > 0
|
||||
s8_t i;
|
||||
|
||||
for (i = 0; i < LWIP_6LOWPAN_NUM_CONTEXTS; i++) {
|
||||
@ -158,12 +157,9 @@ lowpan6_context_lookup(const ip6_addr_t *ip6addr)
|
||||
return i;
|
||||
}
|
||||
}
|
||||
#else
|
||||
LWIP_UNUSED_ARG(ip6addr);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
#endif /* LWIP_6LOWPAN_IPHC */
|
||||
#endif /* LWIP_6LOWPAN_IPHC && LWIP_6LOWPAN_NUM_CONTEXTS > 0 */
|
||||
|
||||
#if LWIP_6LOWPAN_IPHC || LWIP_6LOWPAN_INFER_SHORT_ADDRESS
|
||||
/* Determine compression mode for unicast address. */
|
||||
|
Loading…
Reference in New Issue
Block a user