Received: from eggs.gnu.org ([2001:4830:134:3::10]:52125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBdSQ-0004us-Ak for qemu-devel@nongnu.org; Sat, 11 Jun 2016 03:35:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBdSD-0007T4-Nx for qemu-devel@nongnu.org; Sat, 11 Jun 2016 03:35:50 -0400 Received: from indium.canonical.com ([91.189.90.7]:52840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBdSD-0007Su-Hd for qemu-devel@nongnu.org; Sat, 11 Jun 2016 03:35:37 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bBdSC-0007yx-VX for ; Sat, 11 Jun 2016 07:35:37 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id ECE7E2E80BB for ; Sat, 11 Jun 2016 07:35:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 11 Jun 2016 07:29:06 -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: <20160611072906.31143.46428.malone@soybean.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 I am currently not able to reproduce the problem with the format strings ... how did you get them? Which compiler (and version) did you use? -- = 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