math/mp.h: Muffle `unused value' warnings from `MP_COPY'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 15 May 2016 11:32:17 +0000 (12:32 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 16 May 2016 08:20:02 +0000 (09:20 +0100)
Nobody cares.

math/mp.h

index bb109b5..ad4309e 100644 (file)
--- a/math/mp.h
+++ b/math/mp.h
@@ -37,6 +37,7 @@
 #include <assert.h>
 #include <string.h>
 
+#include <mLib/macros.h>
 #include <mLib/sub.h>
 
 #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@ --- *
  *