include/coap/debug.h: Fix compiler optimizer warning

This commit is contained in:
Jon Shallow committed 2018-05-17 18:45:26 +01:00
1 parent b35a66ea3d
commit ece443f107
1 file changed
+1 -1
+1 -1
View File
@@ -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. */