projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870363a
)
[libc++] Workaround unused variable warning in test
author
Louis Dionne
<ldionne@apple.com>
Thu, 27 Feb 2020 00:29:49 +0000
(19:29 -0500)
committer
Louis 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
patch
|
blob
|
history
diff --git
a/libcxx/test/std/atomics/types.pass.cpp
b/libcxx/test/std/atomics/types.pass.cpp
index
ba6d694
..
f891f90
100644
(file)
--- 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