From 370922dfbe0964c0b8a0c1974bb1d7b85ac10607 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sun, 14 Nov 2010 03:14:00 +0100 Subject: [PATCH] Silence "warning: suggest braces around empty body in an 'if' statement" --- libusb/libusbi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/libusbi.h b/libusb/libusbi.h index 3b50507..78a2a35 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -129,13 +129,13 @@ void usbi_log(struct libusb_context *ctx, enum usbi_log_level level, #ifdef ENABLE_LOGGING #define _usbi_log(ctx, level, ...) usbi_log(ctx, level, __FUNCTION__, __VA_ARGS__) #else -#define _usbi_log(ctx, level, ...) +#define _usbi_log(ctx, level, ...) do {} while(0) #endif #ifdef ENABLE_DEBUG_LOGGING #define usbi_dbg(...) _usbi_log(NULL, LOG_LEVEL_DEBUG, __VA_ARGS__) #else -#define usbi_dbg(...) +#define usbi_dbg(...) do {} while(0) #endif #define usbi_info(ctx, ...) _usbi_log(ctx, LOG_LEVEL_INFO, __VA_ARGS__) -- 2.7.4