chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5a9d7
)
math/mp.h: Muffle `unused value' warnings from `MP_COPY'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 15 May 2016 11:32:17 +0000
(12:32 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 16 May 2016 08:20:02 +0000
(09:20 +0100)
Nobody cares.
math/mp.h
patch
|
blob
|
blame
|
history
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 <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@ --- *
*