1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

gcoap: remove the #ifdef DEVELHELP

To make sure the cf variable doesn't trigger an `unsed variable` warning
when compile with `-DNDEBUG`.
This commit is contained in:
Sören Tempel 2018-01-15 14:54:47 +01:00
parent 7e7c573eaf
commit 89edc437d5

View File

@ -812,10 +812,8 @@ uint8_t gcoap_op_state(void)
int gcoap_get_resource_list(void *buf, size_t maxlen, uint8_t cf)
{
(void)cf; /* only used in the assert below. */
assert(cf == COAP_CT_LINK_FORMAT);
#ifndef DEVELHELP
(void)cf;
#endif
/* skip the first listener, gcoap itself (we skip /.well-known/core) */
gcoap_listener_t *listener = _coap_state.listeners->next;