Commit 7e9fdf18 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

cut diagnostic suppressions in exception_wrapper

Reviewed By: ot, luciang

Differential Revision: D28250766

fbshipit-source-id: 288c8c61d23c001dcb0d461d3d5179e82c755aaf
parent 14c2b1dc
...@@ -41,15 +41,6 @@ ...@@ -41,15 +41,6 @@
#include <folly/lang/Assume.h> #include <folly/lang/Assume.h>
#include <folly/lang/Exception.h> #include <folly/lang/Exception.h>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression"
// GCC gets confused about lambda scopes and issues shadow-local warnings for
// parameters in totally different functions.
FOLLY_GCC_DISABLE_NEW_SHADOW_WARNINGS
#endif
#define FOLLY_EXCEPTION_WRAPPER_H_INCLUDED #define FOLLY_EXCEPTION_WRAPPER_H_INCLUDED
namespace folly { namespace folly {
...@@ -661,6 +652,3 @@ exception_wrapper try_and_catch(F&& fn) noexcept { ...@@ -661,6 +652,3 @@ exception_wrapper try_and_catch(F&& fn) noexcept {
#undef FOLLY_REQUIRES #undef FOLLY_REQUIRES
#undef FOLLY_REQUIRES_DEF #undef FOLLY_REQUIRES_DEF
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment