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; \
} \
\