Skip to content

Commit fcb30a0

Browse files
error: unused parameter 'args' [-Werror,-Wunused-parameter]
1 parent 5b6a6b7 commit fcb30a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/test/integration/src/pthread/pthread_barrier_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
pthread_barrier_t barrier;
2727
LIBC_NAMESPACE::cpp::Atomic<int> counter;
2828

29-
void *increment_counter_and_wait(void *args) {
29+
void *increment_counter_and_wait([[maybe_unused]] void *args) {
3030
counter.fetch_add(1);
3131
return reinterpret_cast<void *>(
3232
LIBC_NAMESPACE::pthread_barrier_wait(&barrier));
@@ -102,7 +102,7 @@ void reused_barrier_test() {
102102
LIBC_NAMESPACE::pthread_barrier_destroy(&barrier);
103103
}
104104

105-
void *barrier_wait(void *in) {
105+
void *barrier_wait([[maybe_unused]] void *in) {
106106
return reinterpret_cast<void *>(
107107
LIBC_NAMESPACE::pthread_barrier_wait(&barrier));
108108
}

0 commit comments

Comments
 (0)