From: Mark Wooding Date: Sun, 15 May 2016 11:32:17 +0000 (+0100) Subject: math/mp.h: Muffle `unused value' warnings from `MP_COPY'. X-Git-Tag: 2.2.2~7 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/a6d8eb54f8da26e372aa56951e4731ec00903f77 math/mp.h: Muffle `unused value' warnings from `MP_COPY'. Nobody cares. --- diff --git a/math/mp.h b/math/mp.h index bb109b53..ad4309e9 100644 --- a/math/mp.h +++ b/math/mp.h @@ -37,6 +37,7 @@ #include #include +#include #include #ifndef CATACOMB_MPW_H @@ -196,7 +197,8 @@ extern void mp_destroy(mp */*m*/); extern mp *mp_copy(mp */*m*/); -#define MP_COPY(m) ((m)->ref++, (m)) +#define MP_COPY(m) MUFFLE_WARNINGS_EXPR(GCC_WARNING("-Wunused-value"), \ + ((m)->ref++, (m))) /* --- @mp_drop@ --- * *