[libcxx-commits] [libcxx] [libc++] Don't #define __unused with glibc in system_reserved_names.gen.py (PR #206971)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 05:51:15 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Nikolas Klauser (philnik777)
<details>
<summary>Changes</summary>
Newer glibc versions use the identifier `__unused`. To run the test successufly again disable the `__unused` check with glibc.
---
Full diff: https://github.com/llvm/llvm-project/pull/206971.diff
1 Files Affected:
- (modified) libcxx/test/libcxx/system_reserved_names.gen.py (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/206971
More information about the libcxx-commits
mailing list