diff options
Diffstat (limited to 'cpp/include/Ice/OutgoingAsync.h')
-rw-r--r-- | cpp/include/Ice/OutgoingAsync.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp/include/Ice/OutgoingAsync.h b/cpp/include/Ice/OutgoingAsync.h index 29a51926bf8..e1bff8c76c1 100644 --- a/cpp/include/Ice/OutgoingAsync.h +++ b/cpp/include/Ice/OutgoingAsync.h @@ -19,8 +19,14 @@ #include <Ice/LocalException.h> #include <Ice/UniquePtr.h> -#ifndef ICE_CPP11_MAPPING -# include <Ice/AsyncResult.h> +#ifdef ICE_CPP11_MAPPING +# ifdef __clang__ +# pragma clang diagnostic push + // See #2747 +# pragma clang diagnostic ignored "-Wshadow-uncaptured-local" +# endif +#else +# include <Ice/AsyncResult.h> #endif #include <exception> @@ -853,4 +859,10 @@ newCallback(T* instance, #endif +#ifdef ICE_CPP11_MAPPING +# ifdef __clang__ +# pragma clang diagnostic pop +# endif +#endif + #endif |