mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidied up some compiler warnings in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29172 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a19f62698a
commit
de2a3ce038
1 changed files with 5 additions and 5 deletions
|
@ -5,12 +5,12 @@
|
|||
{
|
||||
#define END_FOR_IN(collection) }
|
||||
#else
|
||||
|
||||
void objc_enumerationMutation(id);
|
||||
#define FOR_IN(type, var, c) \
|
||||
do\
|
||||
{\
|
||||
type var;\
|
||||
volatile NSFastEnumerationState gs_##c##_enumState = { 0 };\
|
||||
NSFastEnumerationState gs_##c##_enumState = { 0 };\
|
||||
id gs_##c##_items[16];\
|
||||
unsigned long gs_##c##_limit = \
|
||||
[c countByEnumeratingWithState: &gs_##c##_enumState \
|
||||
|
@ -30,9 +30,9 @@ do\
|
|||
|
||||
#define END_FOR_IN(c) \
|
||||
} while (gs_##c##counter < gs_##c##_limit);\
|
||||
} while (gs_##c##_limit = [c countByEnumeratingWithState: &gs_##c##_enumState\
|
||||
objects: gs_##c##_items\
|
||||
count: 16]);\
|
||||
} while ((gs_##c##_limit = [c countByEnumeratingWithState: &gs_##c##_enumState\
|
||||
objects: gs_##c##_items\
|
||||
count: 16]));\
|
||||
}\
|
||||
} while(0);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue