Remove warnings for some compilers.
This commit is contained in:
1 parent
c3b66e053a
commit
5c5fbd9bf0
2 files changed
+8
-4
No files matched your search
+4
-2
@@ -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; \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in new issue
Block a user