aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authordurandal <durandal@google.com>2020-02-06 16:57:49 -0500
committerAndy Getz <durandal@google.com>2020-02-07 13:35:36 -0500
commit2d6d7a01c9ce9d7aded4106890ba2352e586c54a (patch)
tree029cdc3437ffdf428da8d08f5de2a0a850052d22 /googlemock
parentfbf67a70d07543f40832d0cd7a58f304bc6ab1d1 (diff)
downloadgoogletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.tar.gz
googletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.tar.bz2
googletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.zip
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
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/include/gmock/gmock-generated-matchers.h2
1 files changed, 1 insertions, 1 deletions
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 <typename arg_type>\