configure.ac: check for -Wshadow-local and -Wshadow-compatible-local
authorJim Meyering <meyering@fb.com>
Thu, 20 Oct 2016 14:50:18 +0000 (07:50 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 20 Oct 2016 14:53:56 +0000 (07:53 -0700)
commit9047707eefac7bf1a5b309afb0d55a970215d08c
tree6aa445ec0b6b65b2cfcc2c21c6170183b18eccf8
parent8b4722fa2fb4687e90ab71311d17f74b3c3ab043
configure.ac: check for -Wshadow-local and -Wshadow-compatible-local

Summary:
Add a configure-time check for whether -Wshadow-local and
-Wshadow-compatible-local are supported.  If so, arrange to
define HAVE_SHADOW_LOCAL_WARNINGS.

In Portability.h, use that new symbol to choose whether
to define FOLLY_GCC_DISABLE_NEW_SHADOW_WARNINGS, which
used pragmas to disable those new warnings.

Differential Revision: D4041696

fbshipit-source-id: 520ee88ae55147a13d0a045aca7d86567a8da99d
folly/Portability.h
folly/configure.ac