Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 0a1482f565198cc7484aaaba97675b18 > files > 2

python-cwiid-3.0.0-6.mga9.src.rpm

From d1f387c613181b4a2a4444aba9692c2164de9aea Mon Sep 17 00:00:00 2001
From: Jens Geudens <jensgeudens@hotmail.com>
Date: Tue, 19 Mar 2019 18:27:25 +0100
Subject: [PATCH 2/2] Fix compile error (return without value) (#7) (#8)

---
 python/cwiidmodule.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/cwiidmodule.c b/python/cwiidmodule.c
index 15bf56e..3599eed 100644
--- a/python/cwiidmodule.c
+++ b/python/cwiidmodule.c
@@ -154,7 +154,7 @@ PyMODINIT_FUNC PyInit_cwiid(void)
 	int i;
 
 	if (!(Module = PyModule_Create(&moduledef))) {
-		return;
+		return NULL;
 	}
 
 	Wiimote_Type.tp_new = PyType_GenericNew;
@@ -173,7 +173,7 @@ PyMODINIT_FUNC PyInit_cwiid(void)
 	}
 
 	if (!(CCapsule = PyCapsule_New(ConvertMesgArray, "dynamr", NULL))) {
-		return;
+		return NULL;
 	}
 	PyModule_AddObject(Module, "ConvertMesgArray", CCapsule);
 	
-- 
2.25.0