[libcxx-commits] [libcxx] [libcxx] Don't use #define __unused in libcxx-03 for glibc (PR #230209)
Aiden Grossman via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 8 09:50:34 PDT 2026
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/230209
Ports 3c16a8b183693e8df2e2173764e10c33c33ab06a to the cxx-03 headers. This pops up when trying to bump the container version due to the ubuntu 26.04 update.
>From 194255f75c44e5058a4ab1dd71b5f4bd14df0a90 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 8 Oct 2026 16:48:35 +0000
Subject: [PATCH] [libcxx] Don't use #define __unused in libcxx-03 for glibc
Ports 3c16a8b183693e8df2e2173764e10c33c33ab06a to the cxx-03 headers.
This pops up when trying to bump the container version due to the ubuntu
26.04 update.
---
libcxx/test/libcxx-03/system_reserved_names.gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/test/libcxx-03/system_reserved_names.gen.py b/libcxx/test/libcxx-03/system_reserved_names.gen.py
index 810765858346f..13f926bc22c0f 100644
--- a/libcxx/test/libcxx-03/system_reserved_names.gen.py
+++ b/libcxx/test/libcxx-03/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