Internal cleanup

PiperOrigin-RevId: 979874507
Change-Id: I440f7fcde1436954882f1a4db47079bed90a0990
diff --git a/absl/log/check_test_impl.inc b/absl/log/check_test_impl.inc
index c78bbd4..9ec3506 100644
--- a/absl/log/check_test_impl.inc
+++ b/absl/log/check_test_impl.inc
@@ -48,7 +48,7 @@
 using ::testing::HasSubstr;
 using ::testing::Not;
 
-auto* test_env ABSL_ATTRIBUTE_UNUSED = ::testing::AddGlobalTestEnvironment(
+auto* test_env [[maybe_unused]] = ::testing::AddGlobalTestEnvironment(
     new absl::log_internal::LogTestEnvironment);
 
 #if GTEST_HAS_DEATH_TEST