From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10230 Path: news.gmane.org!not-for-mail From: weimingz@codeaurora.org Newsgroups: gmane.linux.lib.musl.general Subject: Re: Fix warnings when build with clang Date: Mon, 27 Jun 2016 10:01:52 -0700 Message-ID: <36ad2a0f7443ff7e95b7e927b49a2a87@codeaurora.org> References: <20160625093707.GA19691@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467046931 29749 80.91.229.3 (27 Jun 2016 17:02:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 17:02:11 +0000 (UTC) Cc: Szabolcs Nagy To: musl@lists.openwall.com Original-X-From: musl-return-10243-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jun 27 19:02:10 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 1bHZvF-0004TZ-7w for gllmg-musl@m.gmane.org; Mon, 27 Jun 2016 19:02:09 +0200 Original-Received: (qmail 1726 invoked by uid 550); 27 Jun 2016 17:02:05 -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 1705 invoked from network); 27 Jun 2016 17:02:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 In-Reply-To: <20160625093707.GA19691@port70.net> X-Sender: weimingz@codeaurora.org User-Agent: Roundcube Webmail/1.1.4 Xref: news.gmane.org gmane.linux.lib.musl.general:10230 Archived-At: On 2016-06-25 02:37, Szabolcs Nagy wrote: > * 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. The endian.h is a musl file.