From 7515e399436a832a0109d64a70b4e1125568dda5 Mon Sep 17 00:00:00 2001 From: misterg Date: Mon, 17 Dec 2018 15:35:22 -0500 Subject: Googletest export Suppress C4503 for MCVS PiperOrigin-RevId: 225871050 --- googlemock/test/gmock-generated-actions_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'googlemock/test/gmock-generated-actions_test.cc') diff --git a/googlemock/test/gmock-generated-actions_test.cc b/googlemock/test/gmock-generated-actions_test.cc index 0fe43ab3..23711028 100644 --- a/googlemock/test/gmock-generated-actions_test.cc +++ b/googlemock/test/gmock-generated-actions_test.cc @@ -428,9 +428,11 @@ TEST(DoAllTest, TenActions) { // the macro definition, as the warnings are generated when the macro // is expanded and macro expansion cannot contain #pragma. Therefore // we suppress them here. +// Also suppress C4503 decorated name length exceeded, name was truncated #ifdef _MSC_VER # pragma warning(push) # pragma warning(disable:4100) +# pragma warning(disable:4503) #endif // Tests the ACTION*() macro family. -- cgit v1.2.3 From 9ab640ce5e5120021c5972d7e60f258bfca64d71 Mon Sep 17 00:00:00 2001 From: misterg Date: Mon, 17 Dec 2018 17:56:57 -0500 Subject: Googletest export Suppress C4503 for MCVS , again PiperOrigin-RevId: 225895719 --- googlemock/test/gmock-generated-actions_test.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'googlemock/test/gmock-generated-actions_test.cc') diff --git a/googlemock/test/gmock-generated-actions_test.cc b/googlemock/test/gmock-generated-actions_test.cc index 23711028..4c649a7e 100644 --- a/googlemock/test/gmock-generated-actions_test.cc +++ b/googlemock/test/gmock-generated-actions_test.cc @@ -434,7 +434,6 @@ TEST(DoAllTest, TenActions) { # pragma warning(disable:4100) # pragma warning(disable:4503) #endif - // Tests the ACTION*() macro family. // Tests that ACTION() can define an action that doesn't reference the @@ -1060,9 +1059,6 @@ TEST(ActionTemplateTest, CanBeOverloadedOnNumberOfValueParameters) { EXPECT_EQ(12345, a4.Perform(std::make_tuple())); } -#ifdef _MSC_VER -# pragma warning(pop) -#endif } // namespace gmock_generated_actions_test } // namespace testing -- cgit v1.2.3