cplay.c:153: bad expression ?
GitHub issues - opened
github at alsa-project.org
Tue Apr 19 22:08:51 CEST 2022
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
More information about the Alsa-devel
mailing list