aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Scaccabarozzi <fsvm88@gmail.com>2015-01-04 10:23:41 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-04 10:43:08 -0500
commit9c5d66ed746deaf51033b322022b9070e0984011 (patch)
tree711cea158ff5abc0cd65a4cf4d57bb22e82b4a79 /scripts
parentmisc/elf-abi: read() gets the correct endian order (diff)
downloadelfix-9c5d66ed746deaf51033b322022b9070e0984011.tar.gz
elfix-9c5d66ed746deaf51033b322022b9070e0984011.tar.bz2
elfix-9c5d66ed746deaf51033b322022b9070e0984011.zip
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@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/paxmodule.c4
1 files changed, 4 insertions, 0 deletions
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);