Remove unneeded initialisation of fenv_t and fexcept_t.

Though common, there is no requirement that fenv_t and fexcept_t are
structure and integer types, respectively. fexcept_t is a structure on
CloudABI.

llvm-svn: 232329
This commit is contained in:
Ed Schouten 2015-03-15 18:36:31 +00:00
parent 4297c3f08c
commit 69722ab7c1
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@
int main()
{
std::fenv_t fenv = {0};
std::fexcept_t fex = 0;
std::fenv_t fenv;
std::fexcept_t fex;
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), "");