[libc++] Workaround unused variable warning in test
authorLouis Dionne <ldionne@apple.com>
Thu, 27 Feb 2020 00:29:49 +0000 (19:29 -0500)
committerLouis Dionne <ldionne@apple.com>
Thu, 27 Feb 2020 00:30:10 +0000 (19:30 -0500)
This only showed up in C++11/C++14 where the static_assert below was
ifdef'd out, and the variable was indeed unused.

libcxx/test/std/atomics/types.pass.cpp

index ba6d694..f891f90 100644 (file)
@@ -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