From bb7c0ecbdf47a5c61d212cbfd2177bf3bf18479b Mon Sep 17 00:00:00 2001 From: misterg Date: Tue, 20 Nov 2018 10:26:17 -0500 Subject: [PATCH] Googletest export Silence C4100 msvc warning PiperOrigin-RevId: 222242329 --- googlemock/include/gmock/gmock-actions.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 37d0d53d..9a637ce7 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -54,6 +54,11 @@ #include #endif // GTEST_LANG_CXX11 +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable:4100) +#endif + namespace testing { // To implement an action Foo, define: @@ -1308,4 +1313,9 @@ inline internal::ReferenceWrapper ByRef(T& l_value) { // NOLINT } // namespace testing +#ifdef _MSC_VER +# pragma warning(pop) +#endif + + #endif // GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_