Skip to content

Commit

Permalink
fabtests/lpp: Fix compiler warning about unused variables
Browse files Browse the repository at this point in the history
suppress compiler warning for non-debug build

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws committed Sep 13, 2024
1 parent bcd211c commit fc93d99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fabtests/prov/lpp/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ static void run_tests(int parallel)
// iteration.
ret = pthread_barrier_init(&_barrier, NULL, nthreads + 1);
assert(ret == 0);
(void) ret; /* suppress compiler warning for non-debug build */

pthread_t *threads = calloc(nthreads, sizeof(pthread_t));
assert(threads);
Expand Down

0 comments on commit fc93d99

Please sign in to comment.