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:
parent
7e7c573eaf
commit
89edc437d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user