Skip to content

Commit 5b30ead

Browse files
authored
Merge pull request teeworlds#3257 from ChillerDragon/pr_c99_result
Fix system.c mixing declarations breaking macOS pipeline
2 parents 1acd30e + 88f1b7d commit 5b30ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/base/system.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,10 +1064,11 @@ void sphore_init(SEMAPHORE *sem)
10641064

10651065
void sphore_wait(SEMAPHORE *sem)
10661066
{
1067+
int result = 0;
1068+
10671069
lock_wait((*sem)->c_lock);
10681070

10691071
(*sem)->waiters++;
1070-
int result = 0;
10711072
while((*sem)->count == 0)
10721073
result = pthread_cond_wait(&(*sem)->c_nzcond, (LOCKINTERNAL *)(*sem)->c_lock);
10731074

0 commit comments

Comments
 (0)