Silence a warning.
[oota-llvm.git] / utils / unittest / googletest / gtest.cc
index 74427af361c2ff618e093d8da6160480b1bc5099..aa2d5bb92509a58a18bb6595d564ad5b472fc692 100644 (file)
@@ -3602,7 +3602,7 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type,
       // the --gtest_catch_exceptions flags are specified.
       DebugBreak();
 #else
-      *static_cast<int*>(NULL) = 1;
+      abort();
 #endif  // GTEST_OS_WINDOWS
     } else if (GTEST_FLAG(throw_on_failure)) {
 #if GTEST_HAS_EXCEPTIONS