From 93d161f877c99f8faca1ec250e2063c5c1247c09 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 26 Sep 2009 18:55:00 +0000 Subject: [PATCH] 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 --- src/common/check.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))) -- 2.39.5