[all-commits] [llvm/llvm-project] 4adb4b: [libcxx] [test] Fix a test error with condvars wit...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Mar 2 10:37:52 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4adb4bca05750a1c85dd931a72a6fece030fa01e
https://github.com/llvm/llvm-project/commit/4adb4bca05750a1c85dd931a72a6fece030fa01e
Author: Martin Storsjö <martin at martin.st>
Date: 2021-03-02 (Tue, 02 Mar 2021)
Changed paths:
M libcxx/test/std/thread/thread.condition/thread.condition.condvar/default.pass.cpp
Log Message:
-----------
[libcxx] [test] Fix a test error with condvars with trivial destruction
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 Revision: https://reviews.llvm.org/D97540
More information about the All-commits
mailing list