mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Avoid (some cases of) compiler warning; mixing declarations and code is incompatible with standards before C99
This commit is contained in:
parent
f7acef2362
commit
0cf5955e00
1 changed files with 10 additions and 9 deletions
|
@ -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,6 +117,7 @@
|
|||
{\
|
||||
GS_DISPATCH_RELEASE(queue);\
|
||||
}\
|
||||
}\
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue