Void cast runtime-unused variables. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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), "");
|
||||
|
||||
Reference in New Issue
Block a user