[libcxx-commits] [libcxx] 3c16a8b - [libc++] Don't #define __unused with glibc in system_reserved_names.gen.py (#206971)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 05:51:24 PDT 2026
Author: Nikolas Klauser
Date: 2026-07-01T14:51:19+02:00
New Revision: 3c16a8b183693e8df2e2173764e10c33c33ab06a
URL: https://github.com/llvm/llvm-project/commit/3c16a8b183693e8df2e2173764e10c33c33ab06a
DIFF: https://github.com/llvm/llvm-project/commit/3c16a8b183693e8df2e2173764e10c33c33ab06a.diff
LOG: [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.
Added:
Modified:
libcxx/test/libcxx/system_reserved_names.gen.py
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/system_reserved_names.gen.py b/libcxx/test/libcxx/system_reserved_names.gen.py
index aaaa385409be4..a0364eeed3256 100644
--- a/libcxx/test/libcxx/system_reserved_names.gen.py
+++ b/libcxx/test/libcxx/system_reserved_names.gen.py
@@ -122,7 +122,7 @@
#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
More information about the libcxx-commits
mailing list