summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2018-05-17 02:58:26 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2018-05-17 02:58:26 +0000
commit610e0fd5d54c66290f3b5c02376a105b3eb8a29a (patch)
treeb7262a9cd51f1f215d086800fa8e51e01397e2c8 /libcxx/test/std/numerics/rand
parent2dd62a3d995ceef620f15a4ba98a0b04523ad30d (diff)
downloadbcm5719-llvm-610e0fd5d54c66290f3b5c02376a105b3eb8a29a.tar.gz
bcm5719-llvm-610e0fd5d54c66290f3b5c02376a105b3eb8a29a.zip
Add void casts to suppress nodiscard on linear_congruential_engine.
llvm-svn: 332567
Diffstat (limited to 'libcxx/test/std/numerics/rand')
-rw-r--r--libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp2
-rw-r--r--libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
index d96ccf9de7f..1c3a0c14a6d 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
@@ -25,7 +25,7 @@ test1()
E e1;
E e2;
assert(e1 == e2);
- e1();
+ (void)e1();
e2 = e1;
assert(e1 == e2);
}
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
index b38e8f583f2..641e5f479af 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
@@ -25,8 +25,8 @@ test1()
E e1;
E e2 = e1;
assert(e1 == e2);
- e1();
- e2();
+ (void)e1();
+ (void)e2();
assert(e1 == e2);
}
OpenPOWER on IntegriCloud