Declare dummy ASSERT* macros as ((void)0) to work around a warning I can't remember...
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 9 Feb 2005 21:50:28 +0000 (21:50 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 9 Feb 2005 21:50:28 +0000 (21:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@365 38d2e660-2303-0410-9eaa-f027e97ec537

debug.h

diff --git a/debug.h b/debug.h
index 97f44e8125397c908fed4b3ae729e2faa4e7228b..be38e357cf2f707e835ed90cdc3247588bb002a2 100755 (executable)
--- a/debug.h
+++ b/debug.h
@@ -17,6 +17,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.10  2005/02/09 21:50:28  bernie
+ *#* Declare dummy ASSERT* macros as ((void)0) to work around a warning I can't remember any more.
+ *#*
  *#* Revision 1.9  2005/01/25 08:36:40  bernie
  *#* kputnum(): Export.
  *#*
 
        #define DB(x)  /* nothing */
        #ifndef ASSERT
-               #define ASSERT(x)  do {} while (0)
+               #define ASSERT(x)  ((void)0)
        #endif /* ASSERT */
-       #define ASSERT2(x, help)             do {} while (0)
-       #define ASSERT_VALID_PTR(p)          do {} while (0)
-       #define ASSERT_VALID_PTR_OR_NULL(p)  do {} while (0)
-       #define ASSERT_VALID_OBJ(_t, _o)     do {} while (0)
+       #define ASSERT2(x, help)             ((void)0)
+       #define ASSERT_VALID_PTR(p)          ((void)0)
+       #define ASSERT_VALID_PTR_OR_NULL(p)  ((void)0)
+       #define ASSERT_VALID_OBJ(_t, _o)     ((void)0)
        #define TRACE                        do {} while (0)
        #define TRACEMSG(x,...)              do {} while (0)