diff options
author | Fabio Scaccabarozzi <fsvm88@gmail.com> | 2015-01-04 10:23:41 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-04 10:43:08 -0500 |
commit | 9c5d66ed746deaf51033b322022b9070e0984011 (patch) | |
tree | 711cea158ff5abc0cd65a4cf4d57bb22e82b4a79 | |
parent | misc/elf-abi: read() gets the correct endian order (diff) | |
download | elfix-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>
-rw-r--r-- | scripts/paxmodule.c | 4 |
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); |