Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/P-p-H-d/mlib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Pelissier <patrick.pelissier@gmail.com>2020-07-09 23:14:00 +0300
committerPatrick Pelissier <patrick.pelissier@gmail.com>2020-07-09 23:14:00 +0300
commit8a36b5ff154eafcbdc9b0286e0e069cd01982271 (patch)
treea1132d04569e5ccce11c5de3ece17ca092ba4c38 /m-concurrent.h
parent760764563661b75bfb84c424c22570cb1f3673e0 (diff)
Workaround to avoid CLANG unused function warnings
Diffstat (limited to 'm-concurrent.h')
-rw-r--r--m-concurrent.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/m-concurrent.h b/m-concurrent.h
index b1fad81..9404354 100644
--- a/m-concurrent.h
+++ b/m-concurrent.h
@@ -33,9 +33,11 @@
based on the given container.
USAGE: CONCURRENT_DEF(name, type [, oplist_of_the_type]) */
#define CONCURRENT_DEF(name, ...) \
+ M_BEGIN_PROTECTED_CODE \
CONCURRENTI_DEF_P1(M_IF_NARGS_EQ1(__VA_ARGS__) \
((name, __VA_ARGS__, M_GLOBAL_OPLIST_OR_DEF(__VA_ARGS__)(), M_C(name,_t) ), \
- (name, __VA_ARGS__, M_C(name,_t) )))
+ (name, __VA_ARGS__, M_C(name,_t) ))) \
+ M_END_PROTECTED_CODE
/* Define the oplist of a protected concurrent container given its name and its oplist.
@@ -51,9 +53,11 @@
can be done in parallel.
USAGE: CONCURRENT_RP_DEF(name, type [, oplist_of_the_type]) */
#define CONCURRENT_RP_DEF(name, ...) \
+ M_BEGIN_PROTECTED_CODE \
CONCURRENTI_RP_DEF_P1(M_IF_NARGS_EQ1(__VA_ARGS__) \
((name, __VA_ARGS__, M_GLOBAL_OPLIST_OR_DEF(__VA_ARGS__)(), M_C(name,_t) ), \
- (name, __VA_ARGS__, M_C(name,_t) )))
+ (name, __VA_ARGS__, M_C(name,_t) ))) \
+ M_END_PROTECTED_CODE
/********************************** INTERNAL ************************************/