diff options
author | Haru <haru@dotalux.com> | 2013-12-17 16:46:07 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-12-17 16:54:37 +0100 |
commit | 28cd7d19db63f1f636f399a850b51976bea0ccd9 (patch) | |
tree | 84494b9e6d9dad82a2b76cf5bc789dac850e2f25 /src/common/nullpo.h | |
parent | cb96c43a2cdfb970abf846531eb15697a2b19fc4 (diff) | |
download | hercules-28cd7d19db63f1f636f399a850b51976bea0ccd9.tar.gz hercules-28cd7d19db63f1f636f399a850b51976bea0ccd9.tar.bz2 hercules-28cd7d19db63f1f636f399a850b51976bea0ccd9.tar.xz hercules-28cd7d19db63f1f636f399a850b51976bea0ccd9.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'src/common/nullpo.h')
-rw-r--r-- | src/common/nullpo.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 /** |