Received: from eggs.gnu.org ([2001:4830:134:3::10]:38764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9x76-0006Ul-RN for qemu-devel@nongnu.org; Mon, 06 Jun 2016 12:10:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9x73-0005Lr-NN for qemu-devel@nongnu.org; Mon, 06 Jun 2016 12:10:52 -0400 Received: from indium.canonical.com ([91.189.90.7]:46046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9x73-0005LS-Hu for qemu-devel@nongnu.org; Mon, 06 Jun 2016 12:10:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1b9x72-0003hg-U7 for ; Mon, 06 Jun 2016 16:10:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E175F2E80C3 for ; Mon, 6 Jun 2016 16:10:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 06 Jun 2016 16:00:41 -0000 From: dcb <1589564@bugs.launchpad.net> Reply-To: Bug 1589564 <1589564@bugs.launchpad.net> Sender: bounces@canonical.com Message-Id: <20160606160041.12663.64066.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1589564] [NEW] 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 Public bug reported: qemu/hw/scsi/scsi-disk.c:2741] -> [qemu/hw/scsi/scsi-disk.c:2745]: (warning= ) 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]: (warning= ) Variable 'group_number' is reassigned a value before the old one has been= 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) req= uires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2066]: (warning) %lu in format string (no. 1) req= uires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2069]: (warning) %lu in format string (no. 1) req= uires 'unsigned long' but the argument type is 'signed long'. [qemu/hw/scsi/scsi-disk.c:2083]: (warning) %lu in format string (no. 2) req= uires 'unsigned long' but the argument type is 'signed long'. ** 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/1589564 Title: qemu/hw/scsi/scsi-disk.c:2741: possible missing break ? Status in QEMU: New 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