summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand/rand.device
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.device')
-rw-r--r--libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp1
-rw-r--r--libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp b/libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp
index f01e5653391..141a84a6d9b 100644
--- a/libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp
@@ -20,4 +20,5 @@ int main()
{
std::random_device r;
double e = r.entropy();
+ ((void)e); // Prevent unused warning
}
diff --git a/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp b/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
index 6ecb04547e0..890f4caa31a 100644
--- a/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
@@ -23,6 +23,7 @@ int main()
{
std::random_device r;
std::random_device::result_type e = r();
+ ((void)e); // Prevent unused warning
}
#ifndef TEST_HAS_NO_EXCEPTIONS
OpenPOWER on IntegriCloud