Implement a generalized mechanism for pushing/popping warnings
authorOrvid King <blah38621@gmail.com>
Wed, 27 Jan 2016 21:57:12 +0000 (13:57 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Wed, 27 Jan 2016 22:20:27 +0000 (14:20 -0800)
commitbd8108c1056e4bc84744e449456e97b8772d0f14
tree619eda77066ae8cc454bfbd59d83ba21e5430cce
parent23e1c2d30b3314f37e0642afb3a84aff7e6b93a0
Implement a generalized mechanism for pushing/popping warnings

Summary: Folly synchronized requires disabling the shadow warning in a macro, but that doesn't work under MSVC, so abstract a mechansim out that allows them to be handled gracefully.

Reviewed By: yfeldblum

Differential Revision: D2870357

Pulled By: Orvid

fb-gh-sync-id: a4b0e425736ddd5293f020b360244554571d397f
folly/Portability.h
folly/Synchronized.h