OSDN Git Service

Revert "Revert "Ignore warning for instantiation after specialization.""
authorStephen Hines <srhines@google.com>
Thu, 26 Jan 2017 08:50:31 +0000 (00:50 -0800)
committerStephen Hines <srhines@google.com>
Thu, 26 Jan 2017 08:50:31 +0000 (00:50 -0800)
This reverts commit ee7a1c5d327e132c923cd45b5b2de091204f07dd.

Bug: http://b/31532493
Test: Manual validation

runtime/base/arena_allocator.cc

index 61e0aab..1caf0c0 100644 (file)
@@ -144,8 +144,11 @@ void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first,
   }
 }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Winstantiation-after-specialization"
 // Explicitly instantiate the used implementation.
 template class ArenaAllocatorStatsImpl<kArenaAllocatorCountAllocations>;
+#pragma GCC diagnostic pop
 
 void ArenaAllocatorMemoryTool::DoMakeDefined(void* ptr, size_t size) {
   MEMORY_TOOL_MAKE_DEFINED(ptr, size);