If the destructor is trivial (_LIBCPP_HAS_TRIVIAL_CONDVAR_DESTRUCTION, the constructor always is), the compiler warns about the std::condition_variable being unused.
Add a cast to void to silence the warning about the object being unused.
Differential D97540
[libcxx] [test] Fix a test error with condvars with trivial destruction mstorsjo on Feb 26 2021, 3:30 AM. Authored by
Details
If the destructor is trivial (_LIBCPP_HAS_TRIVIAL_CONDVAR_DESTRUCTION, the constructor always is), the compiler warns about the std::condition_variable being unused. Add a cast to void to silence the warning about the object being unused.
Diff Detail |