summaryrefslogtreecommitdiff
path: root/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp')
-rw-r--r--test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp b/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp
index fcf075a36e1a..f2bf6433ceb4 100644
--- a/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp
+++ b/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), "");