Skip to content

Commit 0eea635

Browse files
committed
fix clang-cl warnings in sysmodule.c
1 parent e82c2ca commit 0eea635

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/sysmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ sys_getrecursionlimit_impl(PyObject *module)
16121612

16131613
#ifdef MS_WINDOWS
16141614

1615-
static PyTypeObject WindowsVersionType = {0, 0, 0, 0, 0, 0};
1615+
static PyTypeObject WindowsVersionType = { 0 };
16161616

16171617
static PyStructSequence_Field windows_version_fields[] = {
16181618
{"major", "Major version number"},
@@ -2527,8 +2527,9 @@ sys__is_gil_enabled_impl(PyObject *module)
25272527
#endif
25282528
}
25292529

2530-
2530+
#ifndef MS_WINDOWS
25312531
static PerfMapState perf_map_state;
2532+
#endif
25322533

25332534
PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void) {
25342535
#ifndef MS_WINDOWS

0 commit comments

Comments
 (0)