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:
parent
e80cb24164
commit
93d161f877
@ -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)))
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user