From: uz Date: Sat, 26 Sep 2009 18:55:00 +0000 (+0000) Subject: Cast the (unused) result of CHECK and PRECONDITION to void to (hopefully) get X-Git-Tag: V2.13.0rc1~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93d161f877c99f8faca1ec250e2063c5c1247c09;p=cc65 Cast the (unused) result of CHECK and PRECONDITION to void to (hopefully) get rid of a clang warning. git-svn-id: svn://svn.cc65.org/cc65/trunk@4238 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/check.h b/src/common/check.h index e0a211392..5f8b31784 100644 --- a/src/common/check.h +++ b/src/common/check.h @@ -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)))