From 89edc437d59f7e717a6ecfa2960573d248f81a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> Date: Mon, 15 Jan 2018 14:54:47 +0100 Subject: [PATCH] gcoap: remove the `#ifdef DEVELHELP` To make sure the cf variable doesn't trigger an `unsed variable` warning when compile with `-DNDEBUG`. --- sys/net/application_layer/gcoap/gcoap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 3aad476b57..bf91cfcc1f 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -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; -- GitLab