diff --git a/src/pyxforms/bitmaps.c b/src/pyxforms/bitmaps.c index 0475a3a..097e775 100644 --- a/src/pyxforms/bitmaps.c +++ b/src/pyxforms/bitmaps.c @@ -138,4 +138,5 @@ PyInit_bitmaps() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module bitmaps"); + return m; } diff --git a/src/pyxforms/box.c b/src/pyxforms/box.c index ea6b8a8..41b0705 100644 --- a/src/pyxforms/box.c +++ b/src/pyxforms/box.c @@ -95,5 +95,6 @@ PyInit_box() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module box"); + return m; } diff --git a/src/pyxforms/browser.c b/src/pyxforms/browser.c index a27db45..1105084 100644 --- a/src/pyxforms/browser.c +++ b/src/pyxforms/browser.c @@ -492,5 +492,6 @@ PyInit_browser() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module browser"); + return m; } diff --git a/src/pyxforms/button.c b/src/pyxforms/button.c index 3e77bdb..0fb84ed 100644 --- a/src/pyxforms/button.c +++ b/src/pyxforms/button.c @@ -375,5 +375,6 @@ PyInit_button() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module button"); + return m; } diff --git a/src/pyxforms/choice.c b/src/pyxforms/choice.c index d84a104..dd97c03 100644 --- a/src/pyxforms/choice.c +++ b/src/pyxforms/choice.c @@ -351,5 +351,6 @@ PyInit_choice() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module choice"); + return m; } diff --git a/src/pyxforms/clock.c b/src/pyxforms/clock.c index 1762987..55ba2b5 100644 --- a/src/pyxforms/clock.c +++ b/src/pyxforms/clock.c @@ -112,5 +112,6 @@ PyInit_clock() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module clock"); + return m; } diff --git a/src/pyxforms/counter.c b/src/pyxforms/counter.c index 3cb1990..44f1220 100644 --- a/src/pyxforms/counter.c +++ b/src/pyxforms/counter.c @@ -210,5 +210,6 @@ PyInit_counter() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module counter"); + return m; } diff --git a/src/pyxforms/dial.c b/src/pyxforms/dial.c index 8b767da..9538f18 100644 --- a/src/pyxforms/dial.c +++ b/src/pyxforms/dial.c @@ -210,5 +210,6 @@ PyInit_dial() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module dial"); + return m; } diff --git a/src/pyxforms/forms.c b/src/pyxforms/forms.c index d3de0d4..10df9a2 100644 --- a/src/pyxforms/forms.c +++ b/src/pyxforms/forms.c @@ -681,7 +681,7 @@ static struct PyModuleDef moduledef = }; PyMODINIT_FUNC -PyInit_forms() +PyInit_forms(void) { PyObject *m, *d; @@ -698,5 +698,6 @@ PyInit_forms() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module forms"); + return m; } diff --git a/src/pyxforms/frame.c b/src/pyxforms/frame.c index 5402512..b96d7c2 100644 --- a/src/pyxforms/frame.c +++ b/src/pyxforms/frame.c @@ -93,5 +93,6 @@ PyInit_frame() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module frame"); + return m; } diff --git a/src/pyxforms/goodies.c b/src/pyxforms/goodies.c index 5754747..b587c0e 100644 --- a/src/pyxforms/goodies.c +++ b/src/pyxforms/goodies.c @@ -505,5 +505,6 @@ PyInit_goodies() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module goodies"); + return m; } diff --git a/src/pyxforms/input.c b/src/pyxforms/input.c index ed47483..04dc958 100644 --- a/src/pyxforms/input.c +++ b/src/pyxforms/input.c @@ -252,5 +252,6 @@ PyInit_input() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module input"); + return m; } diff --git a/src/pyxforms/menu.c b/src/pyxforms/menu.c index 5ba4766..f0ef5f9 100644 --- a/src/pyxforms/menu.c +++ b/src/pyxforms/menu.c @@ -312,5 +312,6 @@ PyInit_menu() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module menu"); + return m; } diff --git a/src/pyxforms/objects.c b/src/pyxforms/objects.c index 799549d..2113f34 100644 --- a/src/pyxforms/objects.c +++ b/src/pyxforms/objects.c @@ -519,5 +519,6 @@ PyInit_objects() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module objects"); + return m; } diff --git a/src/pyxforms/pixmaps.c b/src/pyxforms/pixmaps.c index 6b97868..9c87456 100644 --- a/src/pyxforms/pixmaps.c +++ b/src/pyxforms/pixmaps.c @@ -136,5 +136,6 @@ PyInit_pixmaps() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module pixmaps"); + return m; } diff --git a/src/pyxforms/popups.c b/src/pyxforms/popups.c index 25c4fb5..6c95662 100644 --- a/src/pyxforms/popups.c +++ b/src/pyxforms/popups.c @@ -379,5 +379,6 @@ PyInit_popups() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module popups"); + return m; } diff --git a/src/pyxforms/positioner.c b/src/pyxforms/positioner.c index 89c6265..8d31956 100644 --- a/src/pyxforms/positioner.c +++ b/src/pyxforms/positioner.c @@ -311,5 +311,6 @@ PyInit_positioner() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module positioner"); + return m; } diff --git a/src/pyxforms/slider.c b/src/pyxforms/slider.c index 75ae9dc..42e822a 100644 --- a/src/pyxforms/slider.c +++ b/src/pyxforms/slider.c @@ -272,5 +272,6 @@ PyInit_slider() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module slider"); + return m; } diff --git a/src/pyxforms/text.c b/src/pyxforms/text.c index a5aa61e..6c5805f 100644 --- a/src/pyxforms/text.c +++ b/src/pyxforms/text.c @@ -91,5 +91,6 @@ PyInit_text() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module text"); + return m; } diff --git a/src/pyxforms/timer.c b/src/pyxforms/timer.c index b302d67..dc4b489 100644 --- a/src/pyxforms/timer.c +++ b/src/pyxforms/timer.c @@ -132,5 +132,6 @@ PyInit_timer() /* Check for errors */ if (PyErr_Occurred()) Py_FatalError("can't initialize module timer"); + return m; } diff --git a/src/pyxforms/xforms.c b/src/pyxforms/xforms.c index 1adfe4e..bde948c 100644 --- a/src/pyxforms/xforms.c +++ b/src/pyxforms/xforms.c @@ -85,6 +85,6 @@ static struct PyModuleDef moduledef = PyMODINIT_FUNC PyInit_xforms() { - PyModule_Create(&moduledef); + return PyModule_Create(&moduledef); } diff --git a/src/pyxforms/xyplot.c b/src/pyxforms/xyplot.c index 0c86d10..cba420d 100644 --- a/src/pyxforms/xyplot.c +++ b/src/pyxforms/xyplot.c @@ -448,4 +448,5 @@ PyInit_xyplot () /* Check for errors */ if (PyErr_Occurred ()) Py_FatalError ("can't initialize module xyplot"); + return m; }