From e90930ed6d340bf5864603c79b24420219027cc0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 13 Jan 2010 13:13:03 +0000 Subject: [PATCH] Made sure that none of the EXTRACHECKS_BUG_ON(), EXTRACHECKS_WARN_ON() or EXTRACHECKS_WARN_ON_ONCE() macros trigger a compiler warning about an empty controlled statement in a release or perf build. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1458 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 9cdcaacb7..a20611413 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -75,9 +75,9 @@ #define EXTRACHECKS_WARN_ON(a) WARN_ON(a) #define EXTRACHECKS_WARN_ON_ONCE(a) WARN_ON_ONCE(a) #else -#define EXTRACHECKS_BUG_ON(a) -#define EXTRACHECKS_WARN_ON(a) -#define EXTRACHECKS_WARN_ON_ONCE(a) +#define EXTRACHECKS_BUG_ON(a) do { } while (0) +#define EXTRACHECKS_WARN_ON(a) do { } while (0) +#define EXTRACHECKS_WARN_ON_ONCE(a) do { } while (0) #endif #define TRACE_NULL 0x00000000