From nobody Mon Feb 9 21:38:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1697187066; cv=none; d=zohomail.com; s=zohoarc; b=HiKc/WKtlhatfzXxdkVeSF28l3oCNGzKV4BHexkQdZ9mHOEU7NviXx86ps23RPHxvrMUyXv+Iq9kAOigXyETj7dSpK0p0NmH/CTj4YIxh2eTqBUY5e9sm4NRqgA2Y90T+sQEga10jgjPDnT29St53/IgbJI3YScj4x0ZYXmYEUk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697187066; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mAVHThvK+F2Vg3kNZE+qrXSgyNRN8RtaukB64UY3RKk=; b=X2G2I882wAKpfqdYZe8SJWtduJn/Q3HLoQTDirGyd7q8otYW4+2hNfYW2uRNn57Tx0hjvZoljWs9NWA4C6g+CDCpQ6+ylMwwPXShsMro3akvTVQcwtuRwtbHUCKoyE4zavYnvf5aktJOCBT0B5A1RyrczLxlMP4bScYPQCRZyfQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697187066529913.1337362504702; Fri, 13 Oct 2023 01:51:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrDpc-0007Rr-C6; Fri, 13 Oct 2023 04:47:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrDpS-0007H5-Kl for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:47:31 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrDpP-0000jo-T3 for qemu-devel@nongnu.org; Fri, 13 Oct 2023 04:47:30 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-406618d080eso19641065e9.2 for ; Fri, 13 Oct 2023 01:47:21 -0700 (PDT) Received: from localhost.localdomain (adsl-170.109.242.226.tellas.gr. [109.242.226.170]) by smtp.gmail.com with ESMTPSA id v10-20020a5d678a000000b0032d9f32b96csm569185wru.62.2023.10.13.01.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697186840; x=1697791640; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mAVHThvK+F2Vg3kNZE+qrXSgyNRN8RtaukB64UY3RKk=; b=hXmkj+gxqRo9PTyzU+7YqbQnojir2FNB3v1hwgYCFbdcFI2/5zCnxhYqeSLPvWpLLP zyi24nxiStrnD/gVubidx8DTTEYyO7n17CfAcUmsxXyQJ2j6Gt3NsMwxx3O+SRPduBHf 8wz+nXDnSMj23zG34ulTSOqpo8NBs4Vdv9NlifffXbNpcOvH8fsAquA183nHq2APP5L9 d7ySJAzjwAfE+JpAwBze4s2n0AltfYY7OZMMDso50zv+w0EA8WzU2MCTlGdrXlIHQIFF 6oDVWLLXI6jzALmMD/TNiYP5yaGWWtd6z5h4C1+UEgNJzTYI9lpTGJV5/36kTvcp1Kr7 gMLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697186840; x=1697791640; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mAVHThvK+F2Vg3kNZE+qrXSgyNRN8RtaukB64UY3RKk=; b=WKyxAaMkLZwh0bwURS/Ub2fVBt4vkes1JdnhdNKh44UZ8t67o3NP8EmRAFFAIFWblG FelY9rG0ZjEmKpoSMfF0ZTyxY5b6H7DSWQ6gY85X6aBrVxHTSe3uAgtrolMUQx6demHM g/OjP2JLAMzOo4qI4F+SMGAc5lpmgvttfhRoBG1xyLNrJKNhyhCyLopHD2WLR/GP3lbz VUeBOTBB/GdoUMTBsowZEhQSh8Zb3zDq+FH6npHTWUMUSyZtKNAKD+ErahjAJ1F8R93G bNrHB1BfgJeYzYgGUlg/P2sqF4PZCghYTgxRkCrhA+wp/WaIsOrPMvGwITQ2i8pvcxpg 072A== X-Gm-Message-State: AOJu0YzpXl3HLkSv+u5CGOw5gWU4CyIwtdqvSAxcMrVzZ1xDmwunVeOJ zJo+gk/NgJ70HjoGQLLjgCk4ie/EWe80YQigYfQ= X-Google-Smtp-Source: AGHT+IHXdietNKwR8CMnFpf2HSz6TLxKH89hp0MFe03wA5/xCtbsqrkBFWT1F5jG9Xms+4NaJzavLg== X-Received: by 2002:a05:6000:228:b0:32d:8466:498a with SMTP id l8-20020a056000022800b0032d8466498amr6052156wrz.48.1697186840016; Fri, 13 Oct 2023 01:47:20 -0700 (PDT) From: Emmanouil Pitsidianakis To: qemu-devel@nongnu.org Cc: Emmanouil Pitsidianakis , Markus Armbruster , Michael Roth Subject: [RFC PATCH v3 04/78] qapi/opts-visitor: add fallthrough pseudo-keyword Date: Fri, 13 Oct 2023 11:45:32 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1697187067899100003 Content-Type: text/plain; charset="utf-8" In preparation of raising -Wimplicit-fallthrough to 5, replace all fall-through comments with the fallthrough attribute pseudo-keyword. Signed-off-by: Emmanouil Pitsidianakis --- qapi/opts-visitor.c | 1 + qapi/string-input-visitor.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c index 8f1efab8b9..d7376bf239 100644 --- a/qapi/opts-visitor.c +++ b/qapi/opts-visitor.c @@ -266,6 +266,7 @@ opts_next_list(Visitor *v, GenericList *tail, size_t si= ze) } ov->list_mode =3D LM_IN_PROGRESS; /* range has been completed, fall through in order to pop option */ + fallthrough; =20 case LM_IN_PROGRESS: { const QemuOpt *opt; diff --git a/qapi/string-input-visitor.c b/qapi/string-input-visitor.c index 197139c1c0..1ce43da20b 100644 --- a/qapi/string-input-visitor.c +++ b/qapi/string-input-visitor.c @@ -202,7 +202,7 @@ static bool parse_type_int64(Visitor *v, const char *na= me, int64_t *obj, return false; } assert(siv->lm =3D=3D LM_INT64_RANGE); - /* fall through */ + fallthrough; case LM_INT64_RANGE: /* return the next element in the range */ assert(siv->rangeNext.i64 <=3D siv->rangeEnd.i64); @@ -292,7 +292,7 @@ static bool parse_type_uint64(Visitor *v, const char *n= ame, uint64_t *obj, return false; } assert(siv->lm =3D=3D LM_UINT64_RANGE); - /* fall through */ + fallthrough; case LM_UINT64_RANGE: /* return the next element in the range */ assert(siv->rangeNext.u64 <=3D siv->rangeEnd.u64); --=20 2.39.2