From 6b2ea692f114e9d3fde7ca74dc2d220327289026 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 24 Jul 2014 21:01:35 +0200 Subject: [PATCH] enclose single debug() in block to avoid warning when build w/o debug code --- option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/option.c b/option.c index a03fc9e6..b825eac9 100644 --- a/option.c +++ b/option.c @@ -57,8 +57,9 @@ coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result) { switch(result->delta) { case 15: - if (*opt != COAP_PAYLOAD_START) + if (*opt != COAP_PAYLOAD_START) { debug("ignored reserved option delta 15\n"); + } return 0; case 14: /* Handle two-byte value: First, the MSB + 269 is stored as delta value.