[libcxx] r232329 - Remove unneeded initialisation of fenv_t and fexcept_t.

Ed Schouten ed at nuxi.nl
Sun Mar 15 11:36:31 PDT 2015


Author: ed
Date: Sun Mar 15 13:36:31 2015
New Revision: 232329

URL: http://llvm.org/viewvc/llvm-project?rev=232329&view=rev
Log:
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.

Modified:
    libcxx/trunk/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp

Modified: libcxx/trunk/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp?rev=232329&r1=232328&r2=232329&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/cfenv/cfenv.syn/cfenv.pass.cpp Sun Mar 15 13:36:31 2015
@@ -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), "");





More information about the cfe-commits mailing list