FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-149044: Avoid C++ warnings in PySlot_END macro (GH-158866) by miss-islington · Pull Request #158965 · python/cpython · GitHub

Repository navigation

[3.15] gh-149044: Avoid C++ warnings in PySlot_END macro (GH-158866) - #158965

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-ba9d96f-3.15
Oct 9, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-ba9d96f-3.15

Conversation

miss-islington commented Oct 7, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Initialize all fields in the macro. Otherwise, g++ -Wall -Wextra
complains that some fields are not initialized
[-Werror=missing-field-initializers]:

error: missing initializer for member ‘PySlot::sl_flags’
error: missing initializer for member ‘PySlot::’
error: missing initializer for member ‘PySlot::’
(cherry picked from commit ba9d96f)

Co-authored-by: Victor Stinner vstinner@python.org

)

Initialize all fields in the macro. Otherwise, g++ -Wall -Wextra
complains that some fields are not initialized
[-Werror=missing-field-initializers]:

  error: missing initializer for member ‘PySlot::sl_flags’
  error: missing initializer for member ‘PySlot::<anonymous>’
  error: missing initializer for member ‘PySlot::<anonymous>’
(cherry picked from commit ba9d96f)

Co-authored-by: Victor Stinner <vstinner@python.org>

encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

+1 but this can wait for 3.15.1.

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

vstinner merged commit c78b5a0 into python:3.15 Oct 9, 2026
59 of 63 checks passed
miss-islington deleted the backport-ba9d96f-3.15 branch October 9, 2026 20:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-C-API type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL