summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordurandal <durandal@google.com>2020-02-06 21:57:49 (GMT)
committerAndy Getz <durandal@google.com>2020-02-07 18:35:36 (GMT)
commit2d6d7a01c9ce9d7aded4106890ba2352e586c54a (patch)
tree029cdc3437ffdf428da8d08f5de2a0a850052d22
parentfbf67a70d07543f40832d0cd7a58f304bc6ab1d1 (diff)
downloadgoogletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.zip
googletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.tar.gz
googletest-2d6d7a01c9ce9d7aded4106890ba2352e586c54a.tar.bz2
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
-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 c9dc552..1664f11 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>\