From nobody Mon Feb 9 19:53:11 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=1578488157; cv=none; d=zohomail.com; s=zohoarc; b=J0Q2GltfW2DRWSkXCI3JSLOlcmKJBye588VFWwwOJRhD8Qw0R6w0MIr1/A3ChhMCd/ZB8bbKmn2Vzm4H0KcWxZ8778+vSFqsHymSA0eFbtLXhDbamS7t2pP2LtCAwVLQYyZARK17Cso9mhmWJ9aCfIpqou3lhV1D5KpQ59BuAg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578488157; 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=/fSkOiubeSR2RsQ2FE11TyyAzCwnm2uZ+zIHW+a+jmk=; b=Ns4Fr0x9P+NEG7HCY7LRkKqfZU86+GWI8xlGsDOT/hI0Is/J0q8HBm5PN7uJTh3T1SpXUAag06KUOxIHfFUdGCSwZad5Bc9uHs2PshbaYS99FJ/1qeKuEUdK+DbfS80dFnWHCqrUo5PNM7Td9HQi1Htcavvq97cRuk0i6Lq1r8M= 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 1578488157967626.3214060149924; Wed, 8 Jan 2020 04:55:57 -0800 (PST) Received: from localhost ([::1]:43100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAsO-0002Ms-Kr for importer@patchew.org; Wed, 08 Jan 2020 07:55:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60716) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAWm-0004PA-E3 for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipAWl-0004bC-CI for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:36 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:50274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipAWl-0004ak-67 for qemu-devel@nongnu.org; Wed, 08 Jan 2020 07:33:35 -0500 Received: by mail-wm1-x333.google.com with SMTP id a5so2312312wmb.0 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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 04:33:33 -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=/fSkOiubeSR2RsQ2FE11TyyAzCwnm2uZ+zIHW+a+jmk=; b=k7viQz9hHdRB/kc7Z1yIt1Z1Fpa6raRZepLhOq6A4P7+nJnabr5MTuXWulgle7yKvI VgA0ANDuQruAO3BfZigEtOTGlYbSr9L8Yvv8N/0dFZXXupr0TzUsFeTVgifO0fiUu5Y/ DE4kyw12rfH7ejWiX00ue4RMx3AeS9wG7dqOEHae/EEZneIKb8AFu58hxFxDPYlQhaja 9willGtvIb2u4tqgVogp1nuprxAScccDfXwCJdPgKFdlN9tIGNCkOKwaiYhANthemfOb ZWrxg5LvFtYfWgSqBUJ09WnQqTaDn8tR+oPawuwresAybbGey6e4ESXFTajDuaHHRYTn ijBg== 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=/fSkOiubeSR2RsQ2FE11TyyAzCwnm2uZ+zIHW+a+jmk=; b=ojmjDx4PsYG8k+7vroEhZ+kgUDd/lzg1DWdeJKh4//q1nLF+Wrb7l2lo7PUuZ7m4EP ABsN/1PPvvUMvcvTFD+Ldpdm5gtd8fes56LxB66xg9nutzh5EaFoJNRIevTORnvi6ANo Tp5L06/nqob0JLkI3LqzrCbpqtXo8R8zmswL+lYbUBUsPCrZQdLgaPDcPErrATWql+/x Nqkui0QBEHDoCVswntwUuyKE68YyYmMG2jqnhB5BdnpSwCxAsOPTAPw7qzL3flqqSvhd BUURL6VSn6kiFXcAj3NOV8YCJtV118NdUN7MmEQDPGbicpAvMo5S5IWNTfhFR2G2Zu8a F1AA== X-Gm-Message-State: APjAAAXCRIawqQidTlg1WHqUZkOt31VxFN8vh/a3aFFreq7+a2bfzCwa Y0LLo+gbWU/FWkprerUcJ2MrMtlp X-Google-Smtp-Source: APXvYqwsdN8LajZk8WgLJ7VW/Lty3R60qSgpIVrvWN5+uoXDjyxb2J3J0UjJ0Qt/jSIPUpYUOeFrww== X-Received: by 2002:a7b:c351:: with SMTP id l17mr3777149wmj.25.1578486813980; Wed, 08 Jan 2020 04:33:33 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 34/38] monitor/qmp: Explicit we ignore few QEMUChrEvent in IOEventHandler Date: Wed, 8 Jan 2020 13:32:51 +0100 Message-Id: <1578486775-52247-35-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::333 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 all the events ignored by this frontend, to silent the following GCC warning: CC monitor/qmp.o monitor/qmp.c: In function =E2=80=98monitor_qmp_event=E2=80=99: monitor/qmp.c:345:5: error: enumeration value =E2=80=98CHR_EVENT_BREAK=E2= =80=99 not handled in switch [-Werror=3Dswitch] 345 | switch (event) { | ^~~~~~ monitor/qmp.c:345:5: error: enumeration value =E2=80=98CHR_EVENT_MUX_IN= =E2=80=99 not handled in switch [-Werror=3Dswitch] monitor/qmp.c:345:5: error: enumeration value =E2=80=98CHR_EVENT_MUX_OUT= =E2=80=99 not handled in switch [-Werror=3Dswitch] cc1: all warnings being treated as errors Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Markus Armbruster Message-Id: <20191218172009.8868-12-philmd@redhat.com> Signed-off-by: Paolo Bonzini --- monitor/qmp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monitor/qmp.c b/monitor/qmp.c index b67a8e7..6c46be4 100644 --- a/monitor/qmp.c +++ b/monitor/qmp.c @@ -365,6 +365,11 @@ static void monitor_qmp_event(void *opaque, int event) mon_refcount--; monitor_fdsets_cleanup(); break; + case CHR_EVENT_BREAK: + case CHR_EVENT_MUX_IN: + case CHR_EVENT_MUX_OUT: + /* Ignore */ + break; } } =20 --=20 1.8.3.1