commit:     5188f699d1d449f2cda286ab1c0af01032813e9b
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: Thu Sep  3 23:10:14 2015 +0000
URL:        https://gitweb.gentoo.org/proj/elfix.git/commit/?id=5188f699

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