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

GH-131296: fix clang-cl warnings in sysmodule.c by chris-eibl · Pull Request #131304 · python/cpython · GitHub

/ cpython Public

GH-131296: fix clang-cl warnings in sysmodule.c - #131304

Merged
vstinner merged 3 commits into
python:mainfrom
chris-eibl:fix_clangcl_sysmodule
Mar 20, 2025
Merged

GH-131296: fix clang-cl warnings in sysmodule.c#131304
vstinner merged 3 commits into
python:mainfrom
chris-eibl:fix_clangcl_sysmodule

Conversation

chris-eibl commented Mar 15, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Comment thread Python/sysmodule.c
#ifdef MS_WINDOWS

static PyTypeObject WindowsVersionType = {0, 0, 0, 0, 0, 0};
static PyTypeObject WindowsVersionType = { 0 };

Copy link
Copy Markdown
Member Author

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

Previously, this generated 3 times

warning : suggest braces around initialization of subobject [-Wmissing-braces]

Doubled/or trippled, because compiled in the _freeze_module, too.

Comment thread Python/sysmodule.c
}


#ifndef MS_WINDOWS

Copy link
Copy Markdown
Member Author

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

fix warning : unused variable 'perf_map_state' [-Wunused-variable]

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

This one was fixed by 486d537, you can now revert the change which just removes an empty line, no?

Copy link
Copy Markdown
Member Author

Rebased, because #131487 partly touched it

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 enabled auto-merge (squash) March 20, 2025 16:24
vstinner merged commit a2ea417 into python:main Mar 20, 2025
chris-eibl deleted the fix_clangcl_sysmodule branch March 20, 2025 16:31
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL