util/zbin.c:390:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of type 'int' which may cause truncation of value [-Werror=absolute-value]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For qemu-3.0.0 I see with GCC 9 compiler a new warning:
$ make -j1 -C roms pxerom VERBOSE=1 V=1
make: Entering directory '/home/
make -C ipxe/src CONFIG=qemu \
PACKAGING_
CROSS_COMPILE= \
bin/8086100e.rom bin/808610d3.rom bin/80861209.rom bin/10500940.rom bin/10222000.rom bin/10ec8139.rom bin/1af41000.rom bin/15ad07b0.rom
make[1]: Entering directory '/home/
gcc -Wall -W -Wformat-nonliteral -O2 -g -Werror util/zbin.c -llzma -o util/zbin
util/zbin.c: In function 'process_
util/zbin.c:390:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of type 'int' which may cause truncation of value [-Werror=
390 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size,
| ^~~
util/zbin.c:398:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of type 'int' which may cause truncation of value [-Werror=
398 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size,
| ^~~
util/zbin.c:419:37: error: absolute value function 'abs' given an argument of type 'long int' but has parameter of type 'int' which may cause truncation of value [-Werror=
419 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ),
| ^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile.
tags: | added: ipxe |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
This bug would be better reported to the upstream for the ipxe rom -- we just ship the source code because we ship the binary.