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:
Abseil Team 2026-09-01 08:16:23 -07:00 committed by Copybara-Service
parent d94a7326e9
commit c06edf0146
1 changed files with 0 additions and 2 deletions

View File

@ -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