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[] = {
3737
3838
3939static 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+ )
4147{
4248#ifdef __STDC_VERSION__
4349 if (PyModule_AddIntMacro (module , __STDC_VERSION__ ) < 0 ) {
@@ -53,7 +59,7 @@ _testcext_exec(PyObject *module)
5359}
5460
5561static PyModuleDef_Slot _testcext_slots [] = {
56- {Py_mod_exec , _testcext_exec },
62+ {Py_mod_exec , ( void * ) _testcext_exec },
5763 {0 , NULL }
5864};
5965
Original file line number Diff line number Diff line change 3131else :
3232 # MSVC compiler flags
3333 CFLAGS = [
34+ # Display warnings level 1 to 4
35+ '/W4' ,
3436 # Treat all compiler warnings as compiler errors
3537 '/WX' ,
3638 ]
Original file line number Diff line number Diff line change 2222else :
2323 # MSVC compiler flags
2424 CPPFLAGS = [
25+ # Display warnings level 1 to 4
26+ '/W4' ,
2527 # Treat all compiler warnings as compiler errors
2628 '/WX' ,
2729 ]
You can’t perform that action at this time.
0 commit comments