[libc++][test] Avoid -Wunused-variable warnings in mutex tests (#94907)

After enhancing MSVC's STL to statically initialize our condition_variable,
Clang began noticing that some mutexes in the test suite were unused.
This commit is contained in:
Stephan T. Lavavej
2024-06-10 06:54:56 -07:00
committed by GitHub
parent 1b13bc05fe
commit 88ff2463ea
3 changed files with 9 additions and 9 deletions

View File

@@ -19,9 +19,9 @@
#include "test_macros.h"
int main(int, char**)
{
std::shared_timed_mutex m;
int main(int, char**) {
std::shared_timed_mutex m;
(void)m;
return 0;
}

View File

@@ -18,9 +18,9 @@
#include "test_macros.h"
int main(int, char**)
{
std::timed_mutex m;
int main(int, char**) {
std::timed_mutex m;
(void)m;
return 0;
}

View File

@@ -18,9 +18,9 @@
#include "test_macros.h"
int main(int, char**)
{
std::recursive_timed_mutex m;
int main(int, char**) {
std::recursive_timed_mutex m;
(void)m;
return 0;
}