Skip to content

Commit e0deb1e

Browse files
Revert "Intro TEST_MAYBE_UNUSED macro for tests"
This reverts commit bc01ebc.
1 parent f1d66e6 commit e0deb1e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

libcxx/test/support/test_macros.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -508,16 +508,6 @@ inline Tp const& DoNotOptimize(Tp const& value) {
508508
#define TEST_NO_UNIQUE_ADDRESS
509509
#endif
510510

511-
#if TEST_STD_VER >= 17 && __has_cpp_attribute(maybe_unused)
512-
# define TEST_MAYBE_UNUSED [[maybe_unused]]
513-
#elif __has_cpp_attribute(__maybe_unused__)
514-
# define TEST_MAYBE_UNUSED [[__maybe_unused__]]
515-
#elif __has_cpp_attribute(gnu::unused)
516-
# define TEST_MAYBE_UNUSED [[gnu::unused]]
517-
#else
518-
# define TEST_MAYBE_UNUSED
519-
#endif
520-
521511
#ifdef _LIBCPP_SHORT_WCHAR
522512
# define TEST_SHORT_WCHAR
523513
#endif

0 commit comments

Comments
 (0)