summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp1
1 files changed, 1 insertions, 0 deletions
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