From e936070464f34c1c14b11e0f5ae9f90a2ded3d47 Mon Sep 17 00:00:00 2001 From: h2zero Date: Sun, 28 Jun 2020 16:50:46 -0600 Subject: [PATCH] Cleanup compiler warnings. --- src/NimBLELog.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NimBLELog.h b/src/NimBLELog.h index b519c0f..6e9ed97 100644 --- a/src/NimBLELog.h +++ b/src/NimBLELog.h @@ -25,25 +25,25 @@ #if CORE_DEBUG_LEVEL >= 4 #define NIMBLE_LOGD( tag, format, ... ) MODLOG_DFLT(ERROR, "D %s: "#format"\n",tag,##__VA_ARGS__) #else -#define NIMBLE_LOGD( tag, format, ... ) +#define NIMBLE_LOGD( tag, format, ... ) (void)tag #endif #if CORE_DEBUG_LEVEL >= 3 #define NIMBLE_LOGI( tag, format, ... ) MODLOG_DFLT(ERROR, "I %s: "#format"\n",tag,##__VA_ARGS__) #else -#define NIMBLE_LOGI( tag, format, ... ) +#define NIMBLE_LOGI( tag, format, ... ) (void)tag #endif #if CORE_DEBUG_LEVEL >= 2 #define NIMBLE_LOGW( tag, format, ... ) MODLOG_DFLT(ERROR, "W %s: "#format"\n",tag,##__VA_ARGS__) #else -#define NIMBLE_LOGW( tag, format, ... ) +#define NIMBLE_LOGW( tag, format, ... ) (void)tag #endif #if CORE_DEBUG_LEVEL >= 1 #define NIMBLE_LOGE( tag, format, ... ) MODLOG_DFLT(ERROR, "E %s: "#format"\n",tag,##__VA_ARGS__) #else -#define NIMBLE_LOGE( tag, format, ... ) +#define NIMBLE_LOGE( tag, format, ... ) (void)tag #endif #define NIMBLE_LOGC( tag, format, ... ) MODLOG_DFLT(CRITICAL, "CRIT %s: "#format"\n",tag,##__VA_ARGS__)