From 2d6d7a01c9ce9d7aded4106890ba2352e586c54a Mon Sep 17 00:00:00 2001 From: durandal Date: Thu, 6 Feb 2020 16:57:49 -0500 Subject: Googletest export Tag the function generated by MATCHER with GTEST_ATTRIBUTE_UNUSED_ to fix CI builds of gmock-matchers_test.cc vs. -Wunused-function. See https://github.com/google/googletest/pull/2697 for breakage. PiperOrigin-RevId: 293669752 --- googlemock/include/gmock/gmock-generated-matchers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'googlemock') diff --git a/googlemock/include/gmock/gmock-generated-matchers.h b/googlemock/include/gmock/gmock-generated-matchers.h index c9dc552d..1664f116 100644 --- a/googlemock/include/gmock/gmock-generated-matchers.h +++ b/googlemock/include/gmock/gmock-generated-matchers.h @@ -80,7 +80,7 @@ }\ };\ };\ - inline name##Matcher name() {\ + GTEST_ATTRIBUTE_UNUSED_ inline name##Matcher name() {\ return name##Matcher();\ }\ template \ -- cgit v1.2.3