cplay.c:153: bad expression ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux