[libc++] Don't #define __unused with glibc in system_reserved_names.gen.py (#206971)

Newer glibc versions use the identifier `__unused`. To run the test
successufly again disable the `__unused` check with glibc.
This commit is contained in:
Nikolas Klauser 2026-07-01 14:51:19 +02:00 committed by GitHub
parent d746bcfec5
commit 3c16a8b183
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ for header in public_headers:
#define __release SYSTEM_RESERVED_NAME
// Android and FreeBSD use this for __attribute__((__unused__))
#if !defined(__FreeBSD__) && !defined(__ANDROID__)
#if !defined(__FreeBSD__) && !defined(__ANDROID__) && !defined(__GLIBC__)
#define __unused SYSTEM_RESERVED_NAME
#endif