mailing list of musl libc
 help / color / mirror / code / Atom feed
* endian.h warnings
@ 2013-07-10  2:21 Andre Renaud
  2013-07-10  2:25 ` Rich Felker
  2013-07-10  2:29 ` Nathan McSween
  0 siblings, 2 replies; 5+ messages in thread
From: Andre Renaud @ 2013-07-10  2:21 UTC (permalink / raw)
  To: musl

Hi,
When using musl with -Wparentheses enabled, I get the following warnings:
../include/endian.h: In function '__bswap32':
../include/endian.h:32:2: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
../include/endian.h:32:2: warning: suggest parentheses around
arithmetic in operand of '|' [-Wparentheses]
../include/endian.h: In function '__bswap64':
../include/endian.h:37:2: warning: suggest parentheses around '+'
inside '<<' [-Wparentheses]

I appreciate that these aren't bugs, and are just gcc being over
enthusiastic in it's warnings (which I've asked it to be on the
command line), however would it be worth sticking some parentheses
into the code simply to avoid this kind of noise being visible for
users?

Regards,
Andre


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-10  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-10  2:21 endian.h warnings Andre Renaud
2013-07-10  2:25 ` Rich Felker
2013-07-10  3:11   ` Andre Renaud
2013-07-10  2:29 ` Nathan McSween
2013-07-10  8:15   ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).