diff options
author | Derek Mauro <dmauro@google.com> | 2024-04-16 20:15:51 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-16 20:16:40 (GMT) |
commit | 5a37b517ad4ab6738556f0284c256cae1466c5b4 (patch) | |
tree | c0da707ac6a19f0aacd05199bcd53d42a77481ed /googletest/include/gtest/gtest-param-test.h | |
parent | 5197b1a8e6a1ef9f214f4aa537b0be17cbf91946 (diff) | |
download | googletest-5a37b517ad4ab6738556f0284c256cae1466c5b4.zip googletest-5a37b517ad4ab6738556f0284c256cae1466c5b4.tar.gz googletest-5a37b517ad4ab6738556f0284c256cae1466c5b4.tar.bz2 |
Use `[[maybe_unused]]` when it is available to avoid
-Wused-but-marked-unused warnings
PiperOrigin-RevId: 625430612
Change-Id: Ia9d2e47984e1e6f91966afae8a6750119ae69446
Diffstat (limited to 'googletest/include/gtest/gtest-param-test.h')
-rw-r--r-- | googletest/include/gtest/gtest-param-test.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/include/gtest/gtest-param-test.h b/googletest/include/gtest/gtest-param-test.h index 49a47ea..6847b64 100644 --- a/googletest/include/gtest/gtest-param-test.h +++ b/googletest/include/gtest/gtest-param-test.h @@ -469,7 +469,7 @@ internal::ParamConverterGenerator<T> ConvertGenerator( ::testing::internal::CodeLocation(__FILE__, __LINE__)); \ return 0; \ } \ - static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \ + GTEST_INTERNAL_ATTRIBUTE_MAYBE_UNUSED static int gtest_registering_dummy_; \ }; \ int GTEST_TEST_CLASS_NAME_(test_suite_name, \ test_name)::gtest_registering_dummy_ = \ @@ -514,8 +514,8 @@ internal::ParamConverterGenerator<T> ConvertGenerator( ::testing::internal::DefaultParamName<test_suite_name::ParamType>, \ DUMMY_PARAM_))))(info); \ } \ - static int gtest_##prefix##test_suite_name##_dummy_ \ - GTEST_ATTRIBUTE_UNUSED_ = \ + GTEST_INTERNAL_ATTRIBUTE_MAYBE_UNUSED static int \ + gtest_##prefix##test_suite_name##_dummy_ = \ ::testing::UnitTest::GetInstance() \ ->parameterized_test_registry() \ .GetTestSuitePatternHolder<test_suite_name>( \ |