cmuparlay / parlaylib

A Toolkit for Programming Parallel Algorithms on Shared-Memory Multicore Machines
MIT License
321 stars 60 forks source link

thread_id_pool.h: mark variable as [[maybe_unused]] #69

Closed wheatman closed 10 months ago

wheatman commented 10 months ago

mark a variable only used in an assert as [[maybe_unused]] so that non debug builds don't give warnings when compiling with -Wunused-but-set-variable

parlaylib/include/parlay/internal/../internal/../internal/thread_id_pool.h:50:12: warning: variable 'num_destroyed' set but not used [-Wunused-but-set-variable]
   50 |     size_t num_destroyed = 0;
codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f8e38c7) 96.84% compared to head (604e34f) 96.87%.

:exclamation: Current head 604e34f differs from pull request most recent head e4ff9a6. Consider uploading reports for the commit e4ff9a6 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #69 +/- ## ========================================== + Coverage 96.84% 96.87% +0.02% ========================================== Files 56 56 Lines 3708 3708 ========================================== + Hits 3591 3592 +1 + Misses 117 116 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.