- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.3k
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -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 }; | ||
|  | ||
| static PyStructSequence_Field windows_version_fields[] = { | ||
| {"major", "Major version number"}, | ||
|  | @@ -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 commentThe 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 commentThe 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? | ||
| static PerfMapState perf_map_state; | ||
| #endif | ||
|  | ||
| PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void) { | ||
| #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.
Previously, this generated 3 times
Doubled/or trippled, because compiled in the
_freeze_module, too.