Skip to content

gh-159464: Implement Py_UNUSED using [[maybe_unused]] when available - #159467

Draft
encukou wants to merge 1 commit into
python:mainfrom
encukou:attrs-unused
Draft

encukou wants to merge 1 commit into
python:mainfrom
encukou:attrs-unused

Conversation

@encukou

@encukou encukou commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Add some infrastructure for C23/C++17 attributes (see the issue for why).
Then apply it to Py_UNUSED, to test things out.

I tested on "my" versions of GCC, clang & MSVC; the CI/buildbots will probably find more issues.

Add some infrastructure for using the C23/C++17 attribute syntax;
then apply it to Py_UNUSED.
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 15, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35168352 | 📁 Comparing d2f87c6 against main (637fb36)

  🔍 Preview build  

1 file changed
± c-api/intro.html

@encukou encukou added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Oct 15, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit d2f87c6 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159467%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants