From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10226 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Fix warnings when build with clang Date: Sat, 25 Jun 2016 11:37:07 +0200 Message-ID: <20160625093707.GA19691@port70.net> References: 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 1466847449 12230 80.91.229.3 (25 Jun 2016 09:37:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 09:37:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10239-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 25 11:37:24 2016 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 1bGk1k-00075B-Ac for gllmg-musl@m.gmane.org; Sat, 25 Jun 2016 11:37:24 +0200 Original-Received: (qmail 15555 invoked by uid 550); 25 Jun 2016 09:37:20 -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 15534 invoked from network); 25 Jun 2016 09:37:19 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:10226 Archived-At: * Zhao, Weiming [2016-06-24 17:18:23 -0700]: > Clang gives warnings about the missing parentheses for bitwise ops. > > It's not functional but just code readability. > > musl-m3/include/endian.h:32:25: warning: '&' within '|' > [-Wbitwise-op-parentheses] > return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24; > ~ ~~~~~~^~~~~~~ if clang warns about system headers that's a clang bug.