Skip to content

Commit a717294

Browse files
chore: fix various issues
1 parent 15860bb commit a717294

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/ffi/array_queue.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ int main(void) {
9696
}
9797

9898
for (const auto &c : counts) {
99-
assert(c.load(std::memory_order_seq_cst) == num_threads);
99+
auto value = c.load(std::memory_order_seq_cst);
100+
assert(value == num_threads);
101+
std::ignore = value;
100102
}
101103
}

0 commit comments

Comments
 (0)