mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 16:36:20 +03:00
enclose single debug() in block to avoid warning when build w/o debug code
This commit is contained in:
1 parent
8e55284de1
commit
6b2ea692f1
1 file changed
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user