Skip to content
Snippets Groups Projects
Commit 069849f0 authored by Lucas Jenss's avatar Lucas Jenss
Browse files

WIP tests/gnrc_ipv6_nib: Fix unused function error w/ clang/macOS

In the case that GNRC_IPV6_NIB_CONF_ARSM is set but
GNRC_IPV6_NIB_CONF_6LN is not, clang complains about
the function _get_l2addr_from_ipv6 never being used.
I couldn't easily figure out why this passes in Murdock,
but I'm guessing that clang is simply being smarter than
GCC. Can someone comment on whether there is a better fix
for this?

Relates to #6473
parent ea27fe34
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,9 @@ void _nib_nc_get(const _nib_onl_entry_t *node, gnrc_ipv6_nib_nc_t *nce)
return;
}
}
#else
/* Prevent unused function error thrown by clang */
(void)_get_l2addr_from_ipv6;
#endif
nce->l2addr_len = node->l2addr_len;
memcpy(&nce->l2addr, &node->l2addr, node->l2addr_len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment