51df4937bf
On ARM, gcc warns (-Werror=type-limits) that it will always be false for the if statement. This is because here s->aid is defined as char, while proxmox_restore_open_image() returns an int. This is probably because chars are treated as unsigned on arm arch but signed on x86 arch: https://developer.arm.com/documentation/den0013/d/Porting/Miscellaneous-C-porting-issues/unsigned-char-and-signed-char Make aid an explicit uint8_t, because that is the type for functions taking the aid as a parameter, e.g. proxmox_restore_get_image_length(). Signed-off-by: Jing Luo <jing@jing.rocks> [FE: slightly improve commit message] Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> |
||
---|---|---|
.. | ||
patches | ||
source | ||
changelog | ||
control | ||
copyright | ||
docs | ||
kvm-ifdown | ||
kvm-ifup | ||
Logo.bmp | ||
OVMF_CODE-pure-efi.fd | ||
OVMF_README.txt | ||
OVMF_VARS-pure-efi.fd | ||
parse-cpu-flags.pl | ||
parse-machines.pl | ||
pve-qemu-kvm.install | ||
pve-qemu-kvm.links | ||
pve-qemu-kvm.lintian-overrides | ||
rules |