From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gID3k-0005iL-9a for qemu-devel@nongnu.org; Thu, 01 Nov 2018 09:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gID3h-0002GE-4C for qemu-devel@nongnu.org; Thu, 01 Nov 2018 09:30:52 -0400 Received: from indium.canonical.com ([91.189.90.7]:41568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gID3g-0002AF-GH for qemu-devel@nongnu.org; Thu, 01 Nov 2018 09:30:48 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1gID3b-0003Zo-QK for ; Thu, 01 Nov 2018 13:30:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 353772E80DD for ; Thu, 1 Nov 2018 13:30:43 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 01 Nov 2018 13:18:40 -0000 From: Martin Liska Reply-To: Bug 1801073 <1801073@bugs.launchpad.net> Sender: bounces@canonical.com Message-Id: <154107832062.28716.3850477436321808708.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1801073] [NEW] 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] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: For qemu-3.0.0 I see with GCC 9 compiler a new warning: $ make -j1 -C roms pxerom VERBOSE=3D1 V=3D1 make: Entering directory '/home/abuild/rpmbuild/BUILD/qemu-3.0.0/roms' make -C ipxe/src CONFIG=3Dqemu \ PACKAGING_TIMESTAMP=3D1534273834 \ CROSS_COMPILE=3D \ bin/8086100e.rom bin/808610d3.rom bin/80861209.rom bin/10500940.rom bin/10= 222000.rom bin/10ec8139.rom bin/1af41000.rom bin/15ad07b0.rom make[1]: Entering directory '/home/abuild/rpmbuild/BUILD/qemu-3.0.0/roms/ip= xe/src' gcc -Wall -W -Wformat-nonliteral -O2 -g -Werror util/zbin.c -llzma -o util= /zbin util/zbin.c: In function 'process_zinfo_add': 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 truncati= on of value [-Werror=3Dabsolute-value] 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 truncati= on of value [-Werror=3Dabsolute-value] 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 truncati= on of value [-Werror=3Dabsolute-value] 419 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), | ^~~ cc1: all warnings being treated as errors make[1]: *** [Makefile.housekeeping:1368: util/zbin] Error 1 ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1801073 Title: 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=3Dabsolute-value] Status in QEMU: New Bug description: For qemu-3.0.0 I see with GCC 9 compiler a new warning: $ make -j1 -C roms pxerom VERBOSE=3D1 V=3D1 make: Entering directory '/home/abuild/rpmbuild/BUILD/qemu-3.0.0/roms' make -C ipxe/src CONFIG=3Dqemu \ PACKAGING_TIMESTAMP=3D1534273834 \ CROSS_COMPILE=3D \ 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/abuild/rpmbuild/BUILD/qemu-3.0.0/roms/= ipxe/src' gcc -Wall -W -Wformat-nonliteral -O2 -g -Werror util/zbin.c -llzma -o ut= il/zbin util/zbin.c: In function 'process_zinfo_add': util/zbin.c:390:37: error: absolute value function 'abs' given an argumen= t of type 'long int' but has parameter of type 'int' which may cause trunca= tion of value [-Werror=3Dabsolute-value] 390 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size, | ^~~ util/zbin.c:398:37: error: absolute value function 'abs' given an argumen= t of type 'long int' but has parameter of type 'int' which may cause trunca= tion of value [-Werror=3Dabsolute-value] 398 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), size, | ^~~ util/zbin.c:419:37: error: absolute value function 'abs' given an argumen= t of type 'long int' but has parameter of type 'int' which may cause trunca= tion of value [-Werror=3Dabsolute-value] 419 | ( ( addend < 0 ) ? "-" : "" ), abs ( addend ), | ^~~ cc1: all warnings being treated as errors make[1]: *** [Makefile.housekeeping:1368: util/zbin] Error 1 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1801073/+subscriptions