Remove warnings for some compilers.

This commit is contained in:
Patrick Pelissier committed 2017-08-05 19:26:50 +02:00
1 parent c3b66e053a
commit 5c5fbd9bf0
2 files changed
+8 -4

No files matched your search

+4 -2
View File
@@ -86,8 +86,10 @@
static inline type * \
M_C(name, _init_set)(type *shared) \
{ \
if (shared != NULL) \
atomic_fetch_add(&(shared->M_C(name, _cpt)), 1); \
if (shared != NULL) { \
int n = atomic_fetch_add(&(shared->M_C(name, _cpt)), 1); \
(void) n; \
} \
return shared; \
} \
\
+4 -2
View File
@@ -136,8 +136,10 @@
SHAREDI_CONTRACT(shared); \
assert (dest != shared); \
*dest = *shared; \
if (*dest != NULL) \
atomic_fetch_add(&((*dest)->cpt), 1); \
if (*dest != NULL) { \
int n = atomic_fetch_add(&((*dest)->cpt), 1); \
(void) n; /* unused return value */ \
} \
SHAREDI_CONTRACT(dest); \
} \
\