Skip to content

make error - gcc 5.4.0 #13

@johny-c

Description

@johny-c

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions