File OpenIPMI-no-return-in-nonvoid-function.patch of Package OpenIPMI.27058

Index: OpenIPMI-2.0.31/swig/OpenIPMI.i
===================================================================
--- OpenIPMI-2.0.31.orig/swig/OpenIPMI.i
+++ OpenIPMI-2.0.31/swig/OpenIPMI.i
@@ -3123,6 +3123,7 @@ init_glib(void)
     init_lang();
 #endif
     swig_os_hnd = init_glib_shim("");
+    return 0;
 #else
     return ENOSYS;
 #endif
@@ -3138,6 +3139,7 @@ init_glib12(void)
     init_lang();
 #endif
     swig_os_hnd = init_glib_shim("12");
+    return 0;
 #else
     return ENOSYS;
 #endif
openSUSE Build Service is sponsored by