1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

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
This commit is contained in:
uz 2009-09-26 18:55:00 +00:00
parent e80cb24164
commit 93d161f877

View File

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