From nobody Mon Feb 9 20:10:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549292155904138.6986581544336; Mon, 4 Feb 2019 06:55:55 -0800 (PST) Received: from localhost ([127.0.0.1]:44004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqff8-0001HR-Kl for importer@patchew.org; Mon, 04 Feb 2019 09:55:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqfaS-00066J-Ow for qemu-devel@nongnu.org; Mon, 04 Feb 2019 09:51:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqfTn-0005ny-Mb for qemu-devel@nongnu.org; Mon, 04 Feb 2019 09:44:17 -0500 Received: from mail-qt1-f174.google.com ([209.85.160.174]:35419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqfTl-0005mG-LC for qemu-devel@nongnu.org; Mon, 04 Feb 2019 09:44:09 -0500 Received: by mail-qt1-f174.google.com with SMTP id v11so124441qtc.2 for ; Mon, 04 Feb 2019 06:44:08 -0800 (PST) Received: from redhat.com (pool-173-76-246-42.bstnma.fios.verizon.net. [173.76.246.42]) by smtp.gmail.com with ESMTPSA id r66sm11149858qkb.91.2019.02.04.06.44.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Feb 2019 06:44:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2ImVcZ65yoZJ/6SNQP2siA3BqggBKgjpt+wCiW8RGww=; b=hxDTRDaS+ociVfhEfRWPsrLx1SZgdt8jYyIB/XOyz/tfpw7HzzOPKZqVbp3CtjYg+7 Ni696zTSuoCz50oPXFbvH8KB7Qlkd64kyqjDuoReOYMyj1xiNJ9nAtDhEZENMKjChnav fj5Q+Va1ZqLvG5eJYUxp6rNUnAAh30hbPYRANzgye2fBV3FciLuws72lt/9njCg2eEeW hkc/VBys33UpiIKvYV7du91skdOJc2v/C20b36XWTuoDY3S40AskkRKZjaCQkG4ALj/K 2qCRRx1Orw3LUbjl12NMl0sgxQj5HOVaNPRJyDNfBEI4RbhWhSOTVN5L8EMO3XO1CFco PUlQ== X-Gm-Message-State: AJcUukd9/J+Uv0OXA3FeSuyOoiLxRrDbIQy9RLCYgH8A5rSLx0+NTqg9 3iwlAyouxdruAca4xEsoKTdH0T2oIio= X-Google-Smtp-Source: ALg8bN5DFN+5VeB7i7MLLWk2OlbhVtMMnHXmreBfuFTGjR4Rk2+SQp1ix4+ZdSo5G8j6EAu6b5jEHw== X-Received: by 2002:a0c:e105:: with SMTP id w5mr47635115qvk.234.1549291447572; Mon, 04 Feb 2019 06:44:07 -0800 (PST) Date: Mon, 4 Feb 2019 09:44:05 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <20190204142638.27021-25-mst@redhat.com> References: <20190204142638.27021-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190204142638.27021-1-mst@redhat.com> X-Mailer: git-send-email 2.17.1.1206.gb667731e2e.dirty X-Mutt-Fcc: =sent X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.160.174 Subject: [Qemu-devel] [PULL 24/25] r2d: fix build on mingw X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Magnus Damm , Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Comment near strncpy explains kernel_cmdline does not need to be 0-terminated. Accordingly mark it as QEMU_NONSTRING. Without this, gcc warns: 'strncpy' specified bound 256 equals destination size Signed-off-by: Michael S. Tsirkin --- hw/sh4/r2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 5b399e7161..dcdb3728cb 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -220,7 +220,7 @@ static struct QEMU_PACKED =20 char pad[232]; =20 - char kernel_cmdline[256]; + char kernel_cmdline[256] QEMU_NONSTRING; } boot_params; =20 static void r2d_init(MachineState *machine) --=20 MST