bcc
bcc copied to clipboard
make error - gcc 5.4.0
Hi, when I tried to build bcc
, I got the following error:
src/parse/dec.c: In function ‘read_func’:
src/parse/dec.c:1963:41: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
if ( dec->static_qual && ! dec->area == DEC_LOCAL ) {
^
cc1: all warnings being treated as errors
Makefile:139: recipe for target 'build/parse/dec.o' failed
make: *** [build/parse/dec.o] Error 1
My specs are:
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
I changed the line to if ( dec->static_qual && dec->area != DEC_LOCAL )
and the error disappeared but I am not sure if that has any other consequences.