Avoid (some cases of) compiler warning; mixing declarations and code is incompatible with standards before C99

This commit is contained in:
rfm 2024-07-03 16:21:13 +01:00
parent f7acef2362
commit 0cf5955e00

View file

@ -96,7 +96,7 @@
* Convenience macro to create concurrent dispatch queues for the various
* -enumerateUsingBlock: methods. Non-concurrent will be run in place.
*/
#define GS_DISPATCH_CREATE_QUEUE_AND_GROUP_FOR_ENUMERATION(queue, opts)\
#define GS_DISPATCH_CREATE_QUEUE_AND_GROUP_FOR_ENUMERATION(queue, opts) {\
dispatch_queue_t queue = NULL;\
dispatch_group_t queue ## Group = NULL;\
if (opts & NSEnumerationConcurrent)\
@ -117,7 +117,8 @@
{\
GS_DISPATCH_RELEASE(queue);\
}\
}
}\
}
#else