pve-qemu-qoup/debian/patches
Jing Luo 51df4937bf pbs block driver: improve data type for aid member
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>
2024-06-10 15:45:10 +02:00
..
bitmap-mirror update submodule and patches to QEMU 9.0.0 2024-04-29 15:29:52 +02:00
extra more stable fixes for QEMU 9.0 2024-05-29 13:35:39 +02:00
pve pbs block driver: improve data type for aid member 2024-06-10 15:45:10 +02:00
series more stable fixes for QEMU 9.0 2024-05-29 13:35:39 +02:00