mirror of
https://github.com/dynup/kpatch
synced 2025-03-25 04:16:39 +00:00
GCC 7.2.1 complains about the usage of the PPC64_LOCAL_ENTRY_OFFSET macro: create-diff-object.c: In function ‘is_gcc6_localentry_bundled_sym’: create-diff-object.c:119:83: error: ‘<<’ in boolean context, did you mean ‘<’ ? [-Werror=int-in-bool-context] (((1 << (((other) & STO_PPC64_LOCAL_MASK) >> STO_PPC64_LOCAL_BIT)) >> 2) << 2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ create-diff-object.c:140:10: note: in expansion of macro ‘PPC64_LOCAL_ENTRY_OFFSET’ return (PPC64_LOCAL_ENTRY_OFFSET(sym->sym.st_other) && ^~~~~~~~~~~~~~~~~~~~~~~~ Fix it by explicitly treating the macro as an integer instead of a bool. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> |
||
---|---|---|
.. | ||
gcc-plugins | ||
insn | ||
create-diff-object.c | ||
create-klp-module.c | ||
create-kpatch-module.c | ||
kpatch-build | ||
kpatch-elf.c | ||
kpatch-elf.h | ||
kpatch-gcc | ||
kpatch-intermediate.h | ||
list.h | ||
log.h | ||
lookup.c | ||
lookup.h | ||
Makefile |