-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-131296: fix clang-cl warnings in sysmodule.c #131304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chris-eibl
commented
Mar 15, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: clang-cl issues many warnings when building on Windows #131296
@@ -1612,7 +1612,7 @@ sys_getrecursionlimit_impl(PyObject *module) | |||
|
|||
#ifdef MS_WINDOWS | |||
|
|||
static PyTypeObject WindowsVersionType = {0, 0, 0, 0, 0, 0}; | |||
static PyTypeObject WindowsVersionType = { 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, this generated 3 times
warning : suggest braces around initialization of subobject [-Wmissing-braces]
Doubled/or trippled, because compiled in the _freeze_module
, too.
Python/sysmodule.c
Outdated
@@ -2527,8 +2527,9 @@ sys__is_gil_enabled_impl(PyObject *module) | |||
#endif | |||
} | |||
|
|||
|
|||
#ifndef MS_WINDOWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix warning : unused variable 'perf_map_state' [-Wunused-variable]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was fixed by 486d537, you can now revert the change which just removes an empty line, no?
Rebased, because #131487 partly touched it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM