[PATCH] __unused -> __glibc_reserved in public headers
Florian Weimer
fweimer@redhat.com
Mon Feb 16 10:42:26 GMT 2026
* Jakub Jelinek:
> Hi!
>
> Rename __unused fields to __glibc_reserved.
> __unused is often defined to __attribute__((unused)) in BSD
> sources and furthermore libstdc++ testsuite uses it as a macro
> to verify libstdc++ headers don't use __unused identifiers.
> In ~2012 glibc headers have been cleaned up, but some new
> uses of __unused have reappeared (s390 fenv.h already many
> years ago, the rest last November).
Looks okay.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Later this week, I'll try to get some new test into
scripts/check-obsolete-constructs.py so that this won't regress.
Thanks,
Florian
More information about the Libc-alpha
mailing list