cplay.c:153: bad expression ?
19 Apr
2022
19 Apr
'22
10:08 p.m.
alsa-project/tinycompress issue #13 was opened from dcb314:
I just tried to compile tinycompress with the new C compiler clang-14. It said:
cplay.c:153:34: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses]
Source code is
if ((buf[0] != 0xff) || (buf[1] & 0xf0 != 0xf0))
Suggest new code:
if ((buf[0] != 0xff) || ((buf[1] & 0xf0) != 0xf0))
Issue URL : https://github.com/alsa-project/tinycompress/issues/13 Repository URL: https://github.com/alsa-project/tinycompress
979
Age (days ago)
979
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub issues - opened