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 77020139A84 for ; Thu, 3 Sep 2015 23:08:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF31D14343; Thu, 3 Sep 2015 23:08:28 +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 ECAC414343 for ; Thu, 3 Sep 2015 23:08:27 +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 D79A633FD3F for ; Thu, 3 Sep 2015 23:08:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 428BD185 for ; Thu, 3 Sep 2015 23:08:24 +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: <1441321814.5188f699d1d449f2cda286ab1c0af01032813e9b.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:elfix-0.9.x 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: 5188f699d1d449f2cda286ab1c0af01032813e9b X-VCS-Branch: elfix-0.9.x Date: Thu, 3 Sep 2015 23:08:24 +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: 708d2311-a47c-404a-a7ca-44de40812049 X-Archives-Hash: 57560ed4e0f18ba94aa0d2017f726d5a commit: 5188f699d1d449f2cda286ab1c0af01032813e9b Author: Fabio Scaccabarozzi gmail com> AuthorDate: Sun Jan 4 15:23:41 2015 +0000 Commit: Anthony G. Basile gentoo 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 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);