From a3f0973979546aba6accf5737e20c91148c10bd4 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Tue, 10 Jul 2018 13:19:51 +0300 Subject: [PATCH] OnShutdownDelete shadowing issue https://github.com/google/protobuf/issues/4887 --- src/google/protobuf/stubs/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/stubs/common.h b/src/google/protobuf/stubs/common.h index f505f46af3..c5256d32d0 100644 --- a/src/google/protobuf/stubs/common.h +++ b/src/google/protobuf/stubs/common.h @@ -206,7 +206,7 @@ LIBPROTOBUF_EXPORT void OnShutdownRun(void (*f)(const void*), const void* arg); template T* OnShutdownDelete(T* p) { - OnShutdownRun([](const void* p) { delete static_cast(p); }, p); + OnShutdownRun([](const void* pp) { delete static_cast(pp); }, p); return p; }