From 46f2401614983716677eaad9376af4878ee08d65 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 15 Apr 2019 13:18:00 -0700 Subject: [PATCH] Use GetArena instead --- src/google/protobuf/arena_unittest.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/google/protobuf/arena_unittest.cc b/src/google/protobuf/arena_unittest.cc index 39d7903049..7e5b115633 100644 --- a/src/google/protobuf/arena_unittest.cc +++ b/src/google/protobuf/arena_unittest.cc @@ -1345,10 +1345,8 @@ TEST(ArenaTest, GetArenaShouldReturnNullForNonArenaCompatibleTypes) { // Test that GetArena returns nullptr for types that have a GetArena alias. struct { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-local-typedef" using GetArena = Arena*; -#pragma GCC diagnostic pop + GetArena unused; } has_get_arena_alias; EXPECT_EQ(nullptr, Arena::GetArena(&has_get_arena_alias));