[LLVMbugs] [Bug 13525] GTest ASSERT_NO_THROW

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 29 19:35:18 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13525

Roland Schulz <roland at utk.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Roland Schulz <roland at utk.edu> 2012-08-29 21:35:18 CDT ---
One of the if's is only there as a workaournd for a MSVC warning. Thus this
probably should be fixed in GTest by:

+#ifdef _MSC_VER
 #define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \
   if (::testing::internal::AlwaysTrue()) { statement; }
+#else
+#define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) \
+  { statement; }
+#endif

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list