Skip to content
Snippets Groups Projects
Commit 89edc437 authored by Sören Tempel's avatar Sören Tempel
Browse files

gcoap: remove the `#ifdef DEVELHELP`

To make sure the cf variable doesn't trigger an `unsed variable` warning
when compile with `-DNDEBUG`.
parent 7e7c573e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment