Skip to content

Commit

Permalink
tests/gnrc_ipv6_nib_6ln: Fix error w/ clang on macOS
Browse files Browse the repository at this point in the history
_is_reachable is only used when GNRC_IPV6_NIB_CONF_ARSM
is enabled, and as such it must be guarded so that clang
doesn't complain about a unused function in case
GNRC_IPV6_NIB_CONF_ARSM is not set

Similar to RIOT-OS#7910
Relates to 6473
  • Loading branch information
x3ro committed Oct 30, 2017
1 parent b80cdd8 commit 736c874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/net/gnrc/network_layer/ipv6/nib/nib.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ static void _handle_nbr_adv(kernel_pid_t iface, const ipv6_hdr_t *ipv6,
}
}

#if GNRC_IPV6_NIB_CONF_ARSM
static inline bool _is_reachable(_nib_onl_entry_t *entry)
{
(void)entry; /* _get_nud_state() might just resolved to UNMANAGED as macro */
Expand All @@ -551,6 +552,7 @@ static inline bool _is_reachable(_nib_onl_entry_t *entry)
return true;
}
}
#endif

#if GNRC_IPV6_NIB_CONF_QUEUE_PKT
static gnrc_pktqueue_t *_alloc_queue_entry(gnrc_pktsnip_t *pkt)
Expand Down

0 comments on commit 736c874

Please sign in to comment.