From b8ac5f35d9b1cfd00990691efed19682c5d1eabf Mon Sep 17 00:00:00 2001 From: Nate Stedman Date: Fri, 30 Jun 2017 18:01:42 -0700 Subject: [PATCH] Fix undefined warning errors Summary: Xcode 9 is throwing errors because `-Wshadow-local` and `-Wshadow-compatible-local` are undefined in Clang. Reviewed By: Orvid Differential Revision: D5356476 fbshipit-source-id: 4cc9f48f796f66decb4beaa66d3e66f486449c19 --- folly/ExceptionWrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/ExceptionWrapper.h b/folly/ExceptionWrapper.h index 958a3d31..3a2ff717 100644 --- a/folly/ExceptionWrapper.h +++ b/folly/ExceptionWrapper.h @@ -34,6 +34,7 @@ #include #include #include +#include #include #ifdef __GNUC__ @@ -42,8 +43,7 @@ #pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression" // GCC gets confused about lambda scopes and issues shadow-local warnings for // parameters in totally different functions. -#pragma GCC diagnostic ignored "-Wshadow-local" -#pragma GCC diagnostic ignored "-Wshadow-compatible-local" +FOLLY_GCC_DISABLE_NEW_SHADOW_WARNINGS #endif #define FOLLY_EXCEPTION_WRAPPER_H_INCLUDED -- 2.34.1