Skip to content

Commit

Permalink
gcoap: remove the #ifdef DEVELHELP
Browse files Browse the repository at this point in the history
To make sure the cf variable doesn't trigger an `unsed variable` warning
when compile with `-DNDEBUG`.
  • Loading branch information
nmeum committed Jan 16, 2018
1 parent 7e7c573 commit 89edc43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sys/net/application_layer/gcoap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89edc43

Please sign in to comment.