From 1b83f26a5e038a49d0881d5b702c3242d6f14dfe Mon Sep 17 00:00:00 2001 From: misterg <misterg@google.com> 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 <type_traits> #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<T> ByRef(T& l_value) { // NOLINT } // namespace testing +#ifdef _MSC_VER +# pragma warning(pop) +#endif + + #endif // GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_