mirror of https://github.com/google/googletest.git
Remove obsolete Clang check for __has_warning("-Wzero-as-null-pointer-constant")
The warning has been in Clang since version 5.0. PiperOrigin-RevId: 974506387 Change-Id: I0d1c37511f098fdd6336c48fffd8db8218c19586
This commit is contained in:
parent
d94a7326e9
commit
c06edf0146
|
|
@ -598,10 +598,8 @@ TEST(NullLiteralTest, ImplicitConversion) {
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#if __has_warning("-Wzero-as-null-pointer-constant")
|
|
||||||
#pragma clang diagnostic error "-Wzero-as-null-pointer-constant"
|
#pragma clang diagnostic error "-Wzero-as-null-pointer-constant"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
TEST(NullLiteralTest, NoConversionNoWarning) {
|
TEST(NullLiteralTest, NoConversionNoWarning) {
|
||||||
// Test that gtests detection and handling of null pointer constants
|
// Test that gtests detection and handling of null pointer constants
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue