Received: from eggs.gnu.org ([2001:4830:134:3::10]:54335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDbbL-0001wM-4i for qemu-devel@nongnu.org; Thu, 16 Jun 2016 14:01:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDbbH-0002Dz-Hi for qemu-devel@nongnu.org; Thu, 16 Jun 2016 14:01:10 -0400 Received: from indium.canonical.com ([91.189.90.7]:54227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDbbH-0002Dq-Bv for qemu-devel@nongnu.org; Thu, 16 Jun 2016 14:01:07 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDbbG-0001za-6t for ; Thu, 16 Jun 2016 18:01:06 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 32A882E80AF for ; Thu, 16 Jun 2016 18:01:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Jun 2016 17:55:13 -0000 From: "T. Huth" <1589564@bugs.launchpad.net> Reply-To: Bug 1589564 <1589564@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160606160041.12663.64066.malonedeb@soybean.canonical.com> Message-Id: <20160616175513.15314.60022.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1589564] Re: qemu/hw/scsi/scsi-disk.c:2741: possible missing break ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The issue with the format strings should now be fixed, too: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D142c21455bb2416b37f71b ** Changed in: qemu Status: New =3D> Fix Committed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1589564 Title: qemu/hw/scsi/scsi-disk.c:2741: possible missing break ? Status in QEMU: Fix Committed Bug description: qemu/hw/scsi/scsi-disk.c:2741] -> [qemu/hw/scsi/scsi-disk.c:2745]: (warni= ng) Variable 'cdb1' is reassigned a value before the old one has been used.= 'break;' missing? qemu/hw/scsi/scsi-disk.c:2742] -> [qemu/hw/scsi/scsi-disk.c:2746]: (warni= ng) Variable 'group_number' is reassigned a value before the old one has be= en used. 'break;' missing? Source code is case 1: /* 10-byte CDB. */ r->cdb1 =3D req->cmd.buf[1]; r->group_number =3D req->cmd.buf[6]; case 4: /* 12-byte CDB. */ Also, [qemu/hw/scsi/scsi-disk.c:2063]: (warning) %lu in format string (no. 1) r= equires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2066]: (warning) %lu in format string (no. 1) r= equires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2069]: (warning) %lu in format string (no. 1) r= equires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2083]: (warning) %lu in format string (no. 2) r= equires 'unsigned long' but the argument type is 'signed long'. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1589564/+subscriptions