From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13949 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Warnings to be ignored when building musl Date: Mon, 11 Mar 2019 13:05:44 +0100 Message-ID: <20190311120544.GF26605@port70.net> References: <26204101552302999@myt1-06117f29c1ea.qloud-c.yandex.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="84518"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: musl@lists.openwall.com Original-X-From: musl-return-13965-gllmg-musl=m.gmane.org@lists.openwall.com Mon Mar 11 13:05:59 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1h3Jgt-000Lmg-EL for gllmg-musl@m.gmane.org; Mon, 11 Mar 2019 13:05:59 +0100 Original-Received: (qmail 28014 invoked by uid 550); 11 Mar 2019 12:05:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 27990 invoked from network); 11 Mar 2019 12:05:56 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <26204101552302999@myt1-06117f29c1ea.qloud-c.yandex.net> Xref: news.gmane.org gmane.linux.lib.musl.general:13949 Archived-At: * Dmitry Golovin [2019-03-11 13:16:39 +0200]: > I'm building musl 1.1.21 with clang and I get a lot of compiler warnings. I wonder if it's safe to ignore some of them? any parentheses warning should be ignored. currently you need to learn the c operator precedence rules to work on musl code. ignored-attributes and dangling-else may be relevant. string-plus-int should be ignored. > > Here is a list of warnings I got: > -Wbitwise-op-parentheses > -Wdangling-else > -Wignored-attributes > -Wlogical-op-parentheses > -Wparentheses > -Wshift-op-parentheses > -Wstring-plus-int > -Wunknown-pragmas > > Which of them should be ignored when building with clang? What are better be fixed? > > Regards, > Dmitry