From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7775 Path: news.gmane.org!not-for-mail From: Alex Dowad Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH v2] When building, don't use compiler flags which cause warnings Date: Tue, 26 May 2015 21:57:20 +0200 Message-ID: <5564D020.1020209@gmail.com> References: <20150526181830.GD17573@brightrain.aerifal.cx> <1432665405-26308-1-git-send-email-alexinbeijing@gmail.com> <20150526184723.GE17573@brightrain.aerifal.cx> <5564C197.6020404@gmail.com> <20150526193611.GH17573@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432670266 4977 80.91.229.3 (26 May 2015 19:57:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 19:57:46 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7787-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 26 21:57:45 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 1YxKyu-0006Tk-WB for gllmg-musl@m.gmane.org; Tue, 26 May 2015 21:57:45 +0200 Original-Received: (qmail 23862 invoked by uid 550); 26 May 2015 19:57:43 -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 23844 invoked from network); 26 May 2015 19:57:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=xtrcx/RNVFega2tLHjxzaZAFdyHEdN8WOqo4EEUOYfY=; b=q+3mGhna68paYibKVRfmOY4zWbQlSwPVmDEpVBeFKfFtHOLVGYEjur4rznXUcH2WvJ k18FRLnm8ZV0GgqEMy1kClEixHHZFbeJEB8+BlrduwBQUu/wT9eJY62zVzgOPYazv4Hx AaSPUC1Rs4X3XRvTBRrOj0izCAB0zLvppqmUHbUtOBYgBMHEJu0/r9Kz93q9YGVZUZ3Q f6X8BEKKWbrO7G1gbFVQP6aqG58yhWYirOIEpf17JnyK9B2KMbakVaC17cEOKn8h6em8 Qx3HalOXvHUWmqYqh6PqEzUiYAnGjp3k2VbDsBcH+zgqfMuUcPIzJeIQGbU6pJAXfphu dAFw== X-Received: by 10.195.11.168 with SMTP id ej8mr35734538wjd.150.1432670251921; Tue, 26 May 2015 12:57:31 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <20150526193611.GH17573@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7775 Archived-At: On 26/05/15 21:36, Rich Felker wrote: > On Tue, May 26, 2015 at 08:55:19PM +0200, Alex Dowad wrote: >> >> On 26/05/15 20:47, Rich Felker wrote: >>> On Tue, May 26, 2015 at 08:36:45PM +0200, Alex Dowad wrote: >>>> This silences some warnings when building with clang. >>>> --- >>>> Dear Rich Felker, >>>> >>>> This accomplishes the same thing as the previous patch by "promoting" all >>>> warnings to errors. Look better? >>> No, it has exactly the same problem -- it treats any spurious warnings >>> which the chosen $CC might produce as a failure of the test. >> OK, understood. It doesn't look like there is any way to treat >> ignored options as errors, >> unfortunately. > Which flags are giving the warnings? I see both clang and cparser have > a -Wunknown-warning-option which gives warnings for unknown warning > options. I believe it's on by default, and could be turned off, but > using -Werrror=unknown-warning-option seems like the best thing to do > (so they get rejected). I don't see a way to disable warnings for > other unrecognized options, though. Hmm. -Werror=unknown-warning-option causes configure to disable -Wno-unused-but-set-variable. But it doesn't do anything for other ignored options. It causes problems when building with gcc as well. This isn't a big issue; I'd suggest it's better not to get stuck on it. Thanks, AD