* tests/subthread_create.c (entry): Use AO_fetch_and_add1(&v) instead
of AO_fetch_and_add(&v,1).
DWORD WINAPI entry(LPVOID arg)
#endif
{
- int thread_num = AO_fetch_and_add(&thread_created_cnt, 1);
+ int thread_num = AO_fetch_and_add1(&thread_created_cnt);
GC_word my_depth = (GC_word)arg + 1;
if (my_depth <= MAX_SUBTHREAD_DEPTH
# endif
}
- AO_fetch_and_add(&thread_ended_cnt, 1);
+ (void)AO_fetch_and_add1(&thread_ended_cnt);
return 0;
}