diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-05-02 19:15:48 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-05-02 19:15:48 +0000 |
commit | fb42f4c44adc1e2ac25c1305e77d53e735012b77 (patch) | |
tree | 1b7284c381b8626e94578527a76c00071d9f9bce /libcxx/test/std/numerics | |
parent | 9d91336a839d291ea52e91401e9bd92f4dfc5b5a (diff) | |
download | bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.tar.gz bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.zip |
Void cast runtime-unused variables. Patch from STL@microsoft.com
llvm-svn: 268284
Diffstat (limited to 'libcxx/test/std/numerics')
-rw-r--r-- | libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp b/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp index fcf075a36e1..f2bf6433ceb 100644 --- a/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp +++ b/libcxx/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp @@ -62,6 +62,8 @@ int main() { std::fenv_t fenv; std::fexcept_t fex; + ((void)fenv); // Prevent unused warning + ((void)fex); // Prevent unused warning static_assert((std::is_same<decltype(std::feclearexcept(0)), int>::value), ""); static_assert((std::is_same<decltype(std::fegetexceptflag(&fex, 0)), int>::value), ""); static_assert((std::is_same<decltype(std::feraiseexcept(0)), int>::value), ""); 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 ed5361fbde7..e319e0f4eed 100644 --- a/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.device/eval.pass.cpp @@ -30,7 +30,7 @@ int main() r(); assert(false); } - catch (const std::system_error& e) + catch (const std::system_error&) { } } |