From 9c5d66ed746deaf51033b322022b9070e0984011 Mon Sep 17 00:00:00 2001 From: Fabio Scaccabarozzi Date: Sun, 4 Jan 2015 10:23:41 -0500 Subject: 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 --- scripts/paxmodule.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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); -- cgit v1.2.3-65-gdbad