Skip to content

Commit 6c8ee5a

Browse files
committed
If NDEBUG is defined avoid a loop that only asserts
1 parent b6682b8 commit 6c8ee5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: thread_safe_global.c

+2
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,10 @@ mark_values(thread_safe_var vp)
12681268
continue;
12691269
}
12701270

1271+
#ifndef NDEBUG
12711272
for (v2 = vp->values; v2 != NULL; v2 = v2->next)
12721273
assert(v2 != v);
1274+
#endif
12731275
}
12741276
free(old_values_array);
12751277

0 commit comments

Comments
 (0)