mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
include/coap/debug.h: Fix compiler optimizer warning
This commit is contained in:
1 parent
b35a66ea3d
commit
ece443f107
1 file changed
+1
-1
@@ -65,7 +65,7 @@ void coap_log_impl(coap_log_t level, const char *format, ...);
|
||||
#endif
|
||||
|
||||
#ifndef coap_log
|
||||
#define coap_log(level, ...) do { if ((level)<=coap_get_log_level()) coap_log_impl((level), __VA_ARGS__); } while(0)
|
||||
#define coap_log(level, ...) do { if ((level)<=(int)coap_get_log_level()) coap_log_impl((level), __VA_ARGS__); } while(0)
|
||||
#endif
|
||||
|
||||
/* A set of convenience macros for common log levels. */
|
||||
|
||||
Reference in new issue
Block a user