From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7454 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: x86_64 and x32 fail to build Date: Tue, 21 Apr 2015 01:00:10 +0300 (MSK) Message-ID: References: <20150420211359.GS6817@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1429567224 3865 80.91.229.3 (20 Apr 2015 22:00:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 22:00:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7467-gllmg-musl=m.gmane.org@lists.openwall.com Tue Apr 21 00:00:24 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YkJjr-0001Br-Dt for gllmg-musl@m.gmane.org; Tue, 21 Apr 2015 00:00:23 +0200 Original-Received: (qmail 11524 invoked by uid 550); 20 Apr 2015 22:00:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11506 invoked from network); 20 Apr 2015 22:00:21 -0000 In-Reply-To: User-Agent: Alpine 2.11 (LNX 23 2013-08-11) Xref: news.gmane.org gmane.linux.lib.musl.general:7454 Archived-At: Building x32 with --enable-warnings uncovers one leftover unused variable: diff --git a/arch/x32/syscall_arch.h b/arch/x32/syscall_arch.h index af67fe3..a3abcf5 100644 --- a/arch/x32/syscall_arch.h +++ b/arch/x32/syscall_arch.h @@ -45,7 +45,6 @@ static __inline long __syscall1(long long n, long long a1) static __inline long __syscall2(long long n, long long a1, long long a2) { unsigned long ret; - struct __timespec *ts2 = 0; switch (n) { __fixup_case_2; } When building without --enable-warnings, there are many false positives from -Wpointer-to-int-cast about x32 __scc(); at least from 4.5 onwards GCC enables this warning by default, so perhaps if musl really wants to silence it, it should test the corresponding -Wno-... flag outside of x$warnings == xyes test? Thanks. Alexander