File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,13 @@ static PyMethodDef _testcext_methods[] = {
37
37
38
38
39
39
static int
40
- _testcext_exec (PyObject * module )
40
+ _testcext_exec (
41
+ #ifdef __STDC_VERSION__
42
+ PyObject * module
43
+ #else
44
+ PyObject * Py_UNUSED (module )
45
+ #endif
46
+ )
41
47
{
42
48
#ifdef __STDC_VERSION__
43
49
if (PyModule_AddIntMacro (module , __STDC_VERSION__ ) < 0 ) {
@@ -53,7 +59,7 @@ _testcext_exec(PyObject *module)
53
59
}
54
60
55
61
static PyModuleDef_Slot _testcext_slots [] = {
56
- {Py_mod_exec , _testcext_exec },
62
+ {Py_mod_exec , ( void * ) _testcext_exec },
57
63
{0 , NULL }
58
64
};
59
65
Original file line number Diff line number Diff line change 31
31
else :
32
32
# MSVC compiler flags
33
33
CFLAGS = [
34
+ # Display warnings level 1 to 4
35
+ '/W4' ,
34
36
# Treat all compiler warnings as compiler errors
35
37
'/WX' ,
36
38
]
Original file line number Diff line number Diff line change 22
22
else :
23
23
# MSVC compiler flags
24
24
CPPFLAGS = [
25
+ # Display warnings level 1 to 4
26
+ '/W4' ,
25
27
# Treat all compiler warnings as compiler errors
26
28
'/WX' ,
27
29
]
You can’t perform that action at this time.
0 commit comments