commit:     9c5d66ed746deaf51033b322022b9070e0984011
Author:     Fabio Scaccabarozzi <fsvm88 <AT> gmail <DOT> com>
AuthorDate: Sun Jan  4 15:23:41 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jan  4 15:43:08 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=9c5d66ed

scripts/paxmodule.c: fix build with clang

clang complains of a return with no NULL.

X-Gentoo-Bug: 526832
X-Gentoo-Bug-URL: https://bugs.gentoo.org/526832
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

---
 scripts/paxmodule.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c
index 4ba32df..1355f86 100644
--- a/scripts/paxmodule.c
+++ b/scripts/paxmodule.c
@@ -101,7 +101,11 @@ initpax(void)
 #endif
 
        if (m == NULL)
+#if PY_MAJOR_VERSION >= 3
+               return NULL;
+#else
                return;
+#endif
 
        PaxError = PyErr_NewException("pax.PaxError", NULL, NULL);
        Py_INCREF(PaxError);

Reply via email to