Go to file
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
debian pbs block driver: improve data type for aid member 2024-06-10 15:45:10 +02:00
qemu@c25df57ae8 update submodule and patches to QEMU 9.0.0 2024-04-29 15:29:52 +02:00
.gitignore add .gitignore file 2023-05-22 12:05:14 +02:00
.gitmodules import stable-4 build files 2017-04-05 11:39:09 +02:00
backup.txt correct link to vma spec to new repository url 2020-01-14 11:18:52 +01:00
Makefile makefile: also filter 64-bit hppa ROM for QEMU 8.2 2024-04-26 14:13:53 +02:00
vma_spec.txt import stable-4 build files 2017-04-05 11:39:09 +02:00