From nobody Mon Feb 9 07:56:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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; dkim=fail; spf=pass (zohomail.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 ARC-Seal: i=1; a=rsa-sha256; t=1578488300; cv=none; d=zohomail.com; s=zohoarc; b=MPVNvCNgkL4biiZPCkl0jqGMwmaBWtKUeYRvAKxNbspVIGndWl8/HBC5JNnM+8h1YTz6MEr2JQ666s2F74vtuWsvBm24KSa4fTuM04ZncOaX+0QTR/ura4t6se5xv70g6VdO3iL4h6QKDcL3umuHEklVjS01dk7pXeO0HGMH1/Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578488300; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nCFDvneHvDjWpyCU9KybmAmT/8/EAEw7mDdY8fjzHtg=; b=ReAxtGyIf1WuxbCAyNMDwq/JZ+AsPEYKVHlJ4mbfqceIW4DGZJUIW60Qp17CulrcCGvLSr/mmPm9MmH45YwmuN5xOh/aA4zj8gGX4x7aOd3dhNWVemeClFUjq0Ro4eAg3XefkcM0kZBhwbf73qadnBZ8TjEgJI/O26GDgTP8niA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578488300513856.4595021966824; Wed, 8 Jan 2020 04:58:20 -0800 (PST) Received: from localhost ([::1]:43136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAuh-000679-2V for importer@patchew.org; Wed, 08 Jan 2020 07:58:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60733) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAWn-0004QW-7P for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipAWm-0004bg-6b for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:37 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:54064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipAWm-0004bN-0f for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:36 -0500 Received: by mail-wm1-x334.google.com with SMTP id m24so2291877wmc.3 for ; Wed, 08 Jan 2020 04:33:35 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id o4sm4037750wrw.97.2020.01.08.04.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 04:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nCFDvneHvDjWpyCU9KybmAmT/8/EAEw7mDdY8fjzHtg=; b=aoD84MoyXokD58csuHv96AC8jtTpWWB8KuAHrMgRBSvW/L6VqjvT12xqSrFzZQGPi2 GAbuxkJrv2u1wOA+WEqhJtkBaYPP42Z5AUFVGoI0jrH2CKLRa9xrB51Dy0H10lSAhBav zmqOcg/dxkTfZHoMcRJ4mz2VXtkypKF2iNcjMkyz1FKIOTZbeUg1+e9CMQ0vOMcjD2QI f2mdUcSmH2xmcmpNHhOTJp2O+w9l+3eZac6eyvH7SDG5T051YjTdyJ0eAOZftrE3so4A 6dJkySQFutYmo55HxBugEHAKg8sOtNYNlkYxmwtluBiGFac2w8CZoHYNkWJBsblzx9td TEQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=nCFDvneHvDjWpyCU9KybmAmT/8/EAEw7mDdY8fjzHtg=; b=WV5FhVPx4QvMKkfsg+MbKaPPt/PskRQomkr5881JjzAjvOwFz5WA372fHDdE/vZCwa mM+tE46kxJ+Kh75kgayGGKc9DRzarY06cwlGA1yOXQRFfjmi15OUmBFv6uu+r/5qBlnV VlGrGpw4bf3vGj5b5QfpafqYV6C5xpu2HKIS4I2EkNZ7VSVRrT6LI8A0iEeOyMuBs5Sn 6CMfvmPzkFiCs9WOShBTQAYlMsuXhQ5RT+0BEACxkqhiRusOaGGAdJOtatSm2YyZhuP/ 9miKVWWW0dBQ4Ch+sP9G8nZ6BVaf5rDbHScGThcA0zeoIh/e4WBffXe0EDJSxRSvBJnV 7HTw== X-Gm-Message-State: APjAAAV57D18cWFI8+3pqMeNj27kD5dQkPY7gFcmOkWy2qvOn18M8W55 E5zT1YvCKVB6BWC5nvIayi0k4cb4 X-Google-Smtp-Source: APXvYqz0F9gRx/UG72fiEBZ+ZvwrgDolXMcfeXsQMcZhqAU3JmJCsYOSdSVbdy8s5OubTu2q7XIKag== X-Received: by 2002:a7b:c389:: with SMTP id s9mr3618236wmj.7.1578486814862; Wed, 08 Jan 2020 04:33:34 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 35/38] monitor/hmp: Explicit we ignore a QEMUChrEvent in IOEventHandler Date: Wed, 8 Jan 2020 13:32:52 +0100 Message-Id: <1578486775-52247-36-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1578486775-52247-1-git-send-email-pbonzini@redhat.com> References: <1578486775-52247-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::334 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 The Chardev events are listed in the QEMUChrEvent enum. To be able to use this enum in the IOEventHandler typedef, we need to explicit an event ignored by this frontend, to silent the following GCC warning: CC monitor/hmp.o monitor/hmp.c: In function =E2=80=98monitor_event=E2=80=99: monitor/hmp.c:1330:5: error: enumeration value =E2=80=98CHR_EVENT_BREAK= =E2=80=99 not handled in switch [-Werror=3Dswitch] 1330 | switch (event) { | ^~~~~~ cc1: all warnings being treated as errors Acked-by: Dr. David Alan Gilbert Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Message-Id: <20191218172009.8868-13-philmd@redhat.com> Signed-off-by: Paolo Bonzini --- monitor/hmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monitor/hmp.c b/monitor/hmp.c index 8942e28..706ebe7 100644 --- a/monitor/hmp.c +++ b/monitor/hmp.c @@ -1371,6 +1371,10 @@ static void monitor_event(void *opaque, int event) mon_refcount--; monitor_fdsets_cleanup(); break; + + case CHR_EVENT_BREAK: + /* Ignored */ + break; } } =20 --=20 1.8.3.1