Made sure that the EXTRACHECKS_BUG_ON() macro does not trigger a compiler
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 13 Jan 2010 13:20:00 +0000 (13:20 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 13 Jan 2010 13:20:00 +0000 (13:20 +0000)
warning about an empty controlled statement in a release or perf build.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1459 d57e44dd-8a1f-0410-8b47-8ef2f437770f

usr/fileio/debug.h

index 605c22b..47d6409 100644 (file)
@@ -33,7 +33,7 @@ extern pid_t gettid(void);
 #ifdef EXTRACHECKS
 #define EXTRACHECKS_BUG_ON(a)  sBUG_ON(a)
 #else
-#define EXTRACHECKS_BUG_ON(a)
+#define EXTRACHECKS_BUG_ON(a)  do { } while (0)
 #endif
 
 #define TRACE_NULL           0x00000000