enclose single debug() in block to avoid warning when build w/o debug code

This commit is contained in:
Olaf Bergmann committed 2014-07-24 21:01:35 +02:00
1 parent 8e55284de1
commit 6b2ea692f1
1 file changed
+2 -1
+2 -1
View File
@@ -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.