From 290d5292b08d83614f907dea9ad324d1687499d7 Mon Sep 17 00:00:00 2001 From: Joe George Date: Fri, 20 Sep 2024 14:24:54 -0400 Subject: [PATCH] push-pop in header --- cpp/include/Ice/OutgoingAsync.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpp/include/Ice/OutgoingAsync.h b/cpp/include/Ice/OutgoingAsync.h index ce6fc195a30..426fbb46f19 100644 --- a/cpp/include/Ice/OutgoingAsync.h +++ b/cpp/include/Ice/OutgoingAsync.h @@ -21,6 +21,12 @@ #include #include +#if defined(__clang__) +# pragma clang diagnostic push +// See https://github.com/zeroc-ice/ice/issues/2747 +# pragma clang diagnostic ignored "-Wshadow-uncaptured-local" +#endif + namespace IceInternal { class OutgoingAsyncBase; @@ -495,4 +501,8 @@ namespace IceInternal } } +#ifdef __clang__ +# pragma clang diagnostic pop +#endif + #endif