]> git.sur5r.net Git - cc65/commitdiff
Cast the (unused) result of CHECK and PRECONDITION to void to (hopefully) get
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Sep 2009 18:55:00 +0000 (18:55 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 26 Sep 2009 18:55:00 +0000 (18:55 +0000)
rid of a clang warning.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4238 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/check.h

index e0a211392d16ba4bda50f2d58ad791410a29b81f..5f8b31784be2b34393718efd2f2bc1ce5078e420 100644 (file)
@@ -78,10 +78,10 @@ extern void (*CheckFailed) (const char* Msg, const char* Cond,
  */
 
 #define PRECONDITION(c) \
-    ((c)? 0 : (CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__), 0))
+    ((void) ((c)? 0 : (CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__), 0)))
 
 #define CHECK(c)       \
-    ((c)? 0 : (CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__), 0))
+    ((void) ((c)? 0 : (CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__), 0)))