Commit 2e4740ed authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Suppress -Wshadow-compatible-local in folly/test/stl_tests/StlVectorTest.cpp

Summary:
[Folly] Suppress `-Wshadow-compatible-local` in `folly/test/stl_tests/StlVectorTest.cpp`.

That test source file is heavily macro-driven, and using `SCOPED_TRACE` repeatedly in macros can lead to violations of `-Wshadow-compatible-local`.

Reviewed By: meyering

Differential Revision: D7231029

fbshipit-source-id: 122e1d86032cf884a83ef1716fa48b8f4864a363
parent 72eebc56
...@@ -195,6 +195,8 @@ THOUGHTS: ...@@ -195,6 +195,8 @@ THOUGHTS:
FOLLY_PUSH_WARNING FOLLY_PUSH_WARNING
FOLLY_GCC_DISABLE_WARNING("-Wunused-parameter") FOLLY_GCC_DISABLE_WARNING("-Wunused-parameter")
FOLLY_GCC_DISABLE_WARNING("-Wunused-variable") FOLLY_GCC_DISABLE_WARNING("-Wunused-variable")
// Using SCOPED_TRACE repeatedly from within a macro violates -Wshadow
FOLLY_GCC_DISABLE_WARNING("-Wshadow-compatible-local")
using namespace std; using namespace std;
using namespace folly; using namespace folly;
......
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