Skip to content

Commit

Permalink
ltrace: Add -Wno-bool-compare
Browse files Browse the repository at this point in the history
Add option to ignore the following issue:

    source/ltrace-elf.c: In function 'elf_read_u16':
    source/ltrace-elf.c:221:42: error: comparison of constant '0' with boolean expression is always false [-Werror=bool-compare]
       if (!need_data(data, offset, SIZE / 8) < 0)  \
                                              ^
    source/ltrace-elf.c:238:1: note: in expansion of macro 'DEF_READER'
     DEF_READER(elf_read_u16, 16)
     ^~~~~~~~~~
    cc1: all warnings being treated as errors
  • Loading branch information
donald committed Sep 23, 2019
1 parent 05ae781 commit ae3640d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ltrace.be0
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SRCURL[0]="https://www.ltrace.org/ltrace_${PKGVERSION}.orig.tar.bz2"
#}

mee_build() {
bee_build CFLAGS='-Wno-deprecated-declarations'
bee_build CFLAGS='-Wno-deprecated-declarations -Wno-bool-compare'
}

#mee_install() {
Expand Down

0 comments on commit ae3640d

Please sign in to comment.