]> git.alsa-project.org Git - tinycompress.git/commit
cplay: add parentheses around comparison in operand of ‘&’ topic/warns
authorVinod Koul <vkoul@kernel.org>
Thu, 13 Oct 2022 12:45:54 +0000 (18:15 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Oct 2022 12:45:54 +0000 (18:15 +0530)
commit99e5067796a4f6a9e25ea585b19d38eb5feb945a
treed06a9e0e7b03fd7d9c2be412eb56cda4df7f4e32
parent983b3a4e470bf35e8d37a1ae37d397ed65dc56bf
cplay: add parentheses around comparison in operand of ‘&’

We get a warning:
cplay.c: In function ‘find_adts_header’:
cplay.c:259:41: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
  259 |         if ((buf[0] != 0xff) || (buf[1] & 0xf0 != 0xf0))

Resolve by adding a parentheses around "&" case

Signed-off-by: Vinod Koul <vkoul@kernel.org>
src/utils/cplay.c