From 28cd7d19db63f1f636f399a850b51976bea0ccd9 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 17 Dec 2013 16:46:07 +0100 Subject: Fixed a leftover warning in Release builds - Fixes a series of "left-hand operand of comma expression has no effect" in nullpo checks. - Special thanks to ossi0110. Signed-off-by: Haru --- src/common/nullpo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/nullpo.h') diff --git a/src/common/nullpo.h b/src/common/nullpo.h index ae39b1151..05484135c 100644 --- a/src/common/nullpo.h +++ b/src/common/nullpo.h @@ -41,7 +41,7 @@ */ #define nullpo_chk(t) ( (t) != NULL ? false : (assert_report(__FILE__, __LINE__, __func__, #t, "nullpo info"), true) ) #else // ! NULLPO_CHECK -#define nullpo_chk(t) ((t), false) +#define nullpo_chk(t) ((void)(t), false) #endif // NULLPO_CHECK /** -- cgit v1.2.3-60-g2f50