| Issue |
178855
|
| Summary |
[libc++][test] `-Wunused-variable` warning in thread.semaphore/lost_wakeup.timed.pass.cpp
|
| Labels |
libc++
|
| Assignees |
|
| Reporter |
StephanTLavavej
|
Introduced by #172214, FYI @huixie90.
https://github.com/llvm/llvm-project/blob/369e78774aef4f576a4fce37b55b8179170ce3f8/libcxx/test/std/thread/thread.semaphore/lost_wakeup.timed.pass.cpp#L28
emits:
```
D:\GitHub\STL\llvm-project\libcxx\test\std\thread\thread.semaphore\lost_wakeup.timed.pass.cpp(28,23): error: unused variable 'b' [-Werror,-Wunused-variable]
28 | static std::barrier<> b(num_acquirer + 1);
| ^
```
This is a problem for microsoft/STL's use of the libc++ test suite because we build the tests with warnings-as-errors to be good kitties.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs