[PR #6] compile error #19

Open
opened 2026-01-31 21:29:23 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/qemu/qemu/pull/6

State: closed
Merged: No


Got a fresh copy from git today... and won't compile:

/data/qemu-buserror/target-arm/cpu64.c: In Funktion »aarch64_cpu_register_types«:
/data/qemu-buserror/target-arm/cpu64.c:124:5: Fehler: Vergleich eines vorzeichenlosen Ausdrucks < 0 ist stets »unwahr« [-Werror=type-limits]
for (i = 0; i < ARRAY_SIZE(aarch64_cpus); i++) {
^
cc1: Alle Warnungen werden als Fehler behandelt
make[1]: *** [target-arm/cpu64.o] Fehler 1
make: *** [subdir-aarch64-softmmu] Fehler 2

(Translation of the err msg: "Comparison of an unsigned statement < 0 is always »false«")

Compiled on ArchLinux 3.13.5-x86

PS: My temporary bugfix: Changed
for (i = 0; i < ARRAY_SIZE(aarch64_cpus); i++) {
into
for (i = 0; i < (int) ARRAY_SIZE(aarch64_cpus); i++) {
-> compiles... don't know if it's ok...

**Original Pull Request:** https://github.com/qemu/qemu/pull/6 **State:** closed **Merged:** No --- Got a fresh copy from git today... and won't compile: /data/qemu-buserror/target-arm/cpu64.c: In Funktion »aarch64_cpu_register_types«: /data/qemu-buserror/target-arm/cpu64.c:124:5: Fehler: Vergleich eines vorzeichenlosen Ausdrucks < 0 ist stets »unwahr« [-Werror=type-limits] for (i = 0; i < ARRAY_SIZE(aarch64_cpus); i++) { ^ cc1: Alle Warnungen werden als Fehler behandelt make[1]: **\* [target-arm/cpu64.o] Fehler 1 make: **\* [subdir-aarch64-softmmu] Fehler 2 (Translation of the err msg: "Comparison of an unsigned statement < 0 is always »false«") Compiled on ArchLinux 3.13.5-x86 PS: My temporary bugfix: Changed for (i = 0; i < ARRAY_SIZE(aarch64_cpus); i++) { into for (i = 0; i < (int) ARRAY_SIZE(aarch64_cpus); i++) { -> compiles... don't know if it's ok...
claunia added the pull-request label 2026-01-31 21:29:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#19