mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[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:
committed by
GitHub
parent
1b13bc05fe
commit
88ff2463ea
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user