From ece443f1070d3a06f52108983f3f8cfe583b1cb3 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 5 Apr 2018 21:21:34 +0100 Subject: [PATCH] include/coap/debug.h: Fix compiler optimizer warning --- include/coap/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/coap/debug.h b/include/coap/debug.h index bebed8a5..7f6c08e0 100644 --- a/include/coap/debug.h +++ b/include/coap/debug.h @@ -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. */