capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.

Home Page:http://www.capstone-engine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HPPAMapping.c:422:43: error: comparison between ‘hppa_reg’ and ‘enum hppa_op_type’ [-Werror=enum-compare]

XVilka opened this issue · comments

@R33v0LT I am building it as part of Rizin and due to the stricter compiler flags, it errors there, please take a look.

../subprojects/capstone-next/arch/HPPA/HPPAMapping.c: In function ‘HPPA_reg_access’:
../subprojects/capstone-next/arch/HPPA/HPPAMapping.c:422:43: error: comparison between ‘hppa_reg’ and ‘enum hppa_op_type’ [-Werror=enum-compare]
  422 |                         if (op->mem.space != HPPA_OP_INVALID)
      |                                           ^~
cc1: all warnings being treated as errors
[15/2016] Compiling C object subprojects/capstone-next/libcapstone.a.p/arch_HPPA_HPPAInstPrinter.c.o
FAILED: subprojects/capstone-next/libcapstone.a.p/arch_HPPA_HPPAInstPrinter.c.o 
gcc -Isubprojects/capstone-next/libcapstone.a.p -I../subprojects/capstone-next/include -I../subprojects/capstone-next/include/capstone -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 --std=gnu99 -Werror=sizeof-pointer-memaccess -fvisibility=hidden -DRZ_ASSERT_STDOUT=1 -Wno-cpp -fPIC -DCAPSTONE_X86_ATT_DISABLE_NO -DCAPSTONE_X86_REDUCE_NO -DCAPSTONE_USE_SYS_DYN_MEM -DCAPSTONE_DIET_NO -DCAPSTONE_HAS_ALPHA -DCAPSTONE_HAS_ARM -DCAPSTONE_HAS_AARCH64 -DCAPSTONE_HAS_HPPA -DCAPSTONE_HAS_M68K -DCAPSTONE_HAS_M680X -DCAPSTONE_HAS_MIPS -DCAPSTONE_HAS_POWERPC -DCAPSTONE_HAS_SPARC -DCAPSTONE_HAS_SYSZ -DCAPSTONE_HAS_X86 -DCAPSTONE_HAS_XCORE -DCAPSTONE_HAS_TMS320C64X -DCAPSTONE_HAS_TRICORE -Wno-maybe-uninitialized -MD -MQ subprojects/capstone-next/libcapstone.a.p/arch_HPPA_HPPAInstPrinter.c.o -MF subprojects/capstone-next/libcapstone.a.p/arch_HPPA_HPPAInstPrinter.c.o.d -o subprojects/capstone-next/libcapstone.a.p/arch_HPPA_HPPAInstPrinter.c.o -c ../subprojects/capstone-next/arch/HPPA/HPPAInstPrinter.c
../subprojects/capstone-next/arch/HPPA/HPPAInstPrinter.c: In function ‘print_operand’:
../subprojects/capstone-next/arch/HPPA/HPPAInstPrinter.c:612:35: error: comparison between ‘hppa_reg’ and ‘enum hppa_op_type’ [-Werror=enum-compare]
  612 |                 if (op->mem.space != HPPA_OP_INVALID &&
      |                                   ^~

For the reference: rizinorg/rizin#4394