diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 9a0765ac..c77f7822 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -598,10 +598,8 @@ TEST(NullLiteralTest, ImplicitConversion) { #ifdef __clang__ #pragma clang diagnostic push -#if __has_warning("-Wzero-as-null-pointer-constant") #pragma clang diagnostic error "-Wzero-as-null-pointer-constant" #endif -#endif TEST(NullLiteralTest, NoConversionNoWarning) { // Test that gtests detection and handling of null pointer constants