https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107979
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2022-12-05 Status|UNCONFIRMED |NEW --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- No need to ignore it, this should work: --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -241,6 +241,11 @@ #undef y #endif +#if defined __GLIBC_PREREQ && ! __GLIBC_PREREQ(2, 19) +// Glibc defines this prior to 2.19 +#undef __unused +#endif + #if __has_include(<newlib.h>) // newlib's <sys/cdefs.h> defines these as macros. #undef __lockable Interesting that the comment Andrew posted also mentions __block, because we use that as a variable name in a few places. It hasn't failed so far :-)