Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error - gcc 5.4.0 #13

Open
johny-c opened this issue Jan 29, 2018 · 0 comments
Open

make error - gcc 5.4.0 #13

johny-c opened this issue Jan 29, 2018 · 0 comments

Comments

@johny-c
Copy link

johny-c commented Jan 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant