[libcxx-commits] [libcxx] 682e703 - [libc++] Workaround unused variable warning in test
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 26 16:30:58 PST 2020
Author: Louis Dionne
Date: 2020-02-26T19:30:10-05:00
New Revision: 682e7037552f12e1c0be508f7c1b9ee81f66c6a5
URL: https://github.com/llvm/llvm-project/commit/682e7037552f12e1c0be508f7c1b9ee81f66c6a5
DIFF: https://github.com/llvm/llvm-project/commit/682e7037552f12e1c0be508f7c1b9ee81f66c6a5.diff
LOG: [libc++] Workaround unused variable warning in test
This only showed up in C++11/C++14 where the static_assert below was
ifdef'd out, and the variable was indeed unused.
Added:
Modified:
libcxx/test/std/atomics/types.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/atomics/types.pass.cpp b/libcxx/test/std/atomics/types.pass.cpp
index ba6d6945ff9e..f891f90e116b 100644
--- a/libcxx/test/std/atomics/types.pass.cpp
+++ b/libcxx/test/std/atomics/types.pass.cpp
@@ -34,7 +34,7 @@ template <class A>
void
test_atomic()
{
- A a;
+ A a; (void)a;
#if TEST_STD_VER >= 17
static_assert((std::is_same<typename A::value_type, decltype(a.load())>::value), "");
#endif
More information about the libcxx-commits
mailing list