From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9159A138A1A for ; Sun, 4 Jan 2015 15:42:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57F7AE07C7; Sun, 4 Jan 2015 15:42:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EEFFCE07C7 for ; Sun, 4 Jan 2015 15:42:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB47033FE13 for ; Sun, 4 Jan 2015 15:42:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79F02ED9E for ; Sun, 4 Jan 2015 15:42:21 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1420386188.9c5d66ed746deaf51033b322022b9070e0984011.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/paxmodule.c X-VCS-Directories: scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 9c5d66ed746deaf51033b322022b9070e0984011 X-VCS-Branch: master Date: Sun, 4 Jan 2015 15:42:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eb511bef-69a7-4ccc-9693-2e1836bb40f3 X-Archives-Hash: c1fe6e75e5f70cee1d5cb88758ed5b47 commit: 9c5d66ed746deaf51033b322022b9070e0984011 Author: Fabio Scaccabarozzi gmail com> AuthorDate: Sun Jan 4 15:23:41 2015 +0000 Commit: Anthony G. Basile gentoo 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 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);