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

HPPA, ARM disassemblers "error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]" #2376

Open
XVilka opened this issue May 31, 2024 · 0 comments
Labels
ARM Arch bug build & packaging Build system and packaging related HPPA Arch
Milestone

Comments

@XVilka
Copy link
Contributor

XVilka commented May 31, 2024

../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c: In function ‘fill_ldst_w_mods’:
../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c:1462:16: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
 1462 |         if (im >= 0) {
      |                ^~
../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c: In function ‘decode_load’:
../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c:3626:31: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]
 3626 |                         if (d < 0) {
      |                               ^
../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c: In function ‘decode_store’:
../subprojects/capstone-next/arch/HPPA/HPPADisassembler.c:3649:31: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]
 3649 |                         if (d < 0) {
      |                               ^
../subprojects/capstone-next/arch/ARM/ARMDisassembler.c: In function ‘DecodePowerTwoOperand_0_3’:
../subprojects/capstone-next/arch/ARM/ARMDisassembler.c:7034:25: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]
 7034 |                 if (Val < MinLog || Val > MaxLog) \
      |                         ^
../subprojects/capstone-next/arch/ARM/ARMDisassembler.c:7040:25: note: in expansion of macro ‘DEFINE_DecodePowerTwoOperand’
 7040 |                         DEFINE_DecodePowerTwoOperand(0, 3)
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Rot127 Rot127 added bug ARM Arch build & packaging Build system and packaging related HPPA Arch labels Jun 1, 2024
@Rot127 Rot127 added this to the v6 milestone Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM Arch bug build & packaging Build system and packaging related HPPA Arch
Projects
Status: No status
Development

No branches or pull requests

2 participants