diff options
Diffstat (limited to 'libcxx/test/std/numerics')
| -rw-r--r-- | libcxx/test/std/numerics/c.math/ctgmath.pass.cpp | 1 | ||||
| -rw-r--r-- | libcxx/test/std/numerics/rand/rand.device/entropy.pass.cpp | 1 | ||||
| -rw-r--r-- | libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp index 04a06280450..9e10690e3ca 100644 --- a/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp +++ b/libcxx/test/std/numerics/c.math/ctgmath.pass.cpp @@ -15,4 +15,5 @@ int main() { std::complex<double> cd; double x = std::sin(0); + ((void)x); // Prevent unused warning } 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 |

