chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mp.h: Muffle `unused value' warnings from `MP_COPY'.
[catacomb]
/
math
/
mp.h
diff --git
a/math/mp.h
b/math/mp.h
index bb109b5386a8e32e5802f5a5901a66bad2fc8280..ad4309e915ec89bea760fb707da4152ac12dda88 100644
(file)
--- a/
math/mp.h
+++ b/
math/mp.h
@@
-37,6
+37,7
@@
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
+#include <mLib/macros.h>
#include <mLib/sub.h>
#ifndef CATACOMB_MPW_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*/);
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@ --- *
*
/* --- @mp_drop@ --- *
*