Received: by 2002:a4a:be92:0:0:0:0:0 with SMTP id o18csp3792868oop; Mon, 14 Jan 2019 12:26:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN7mKEn1pAGJOXMDpx4KghxSEx3iJkTqSAMDHl3eJw5JSkHYXmlLO3+P52DHOCxoryjGDCae X-Received: by 2002:a63:4e41:: with SMTP id o1mr314468pgl.282.1547497609756; Mon, 14 Jan 2019 12:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547497609; cv=none; d=google.com; s=arc-20160816; b=QNY0ov5zRJrwSo5oqYal5B6M9q+mfSRn1lOfk5k5/mfeA1WUw3rEjGpjD6Y86qNWr0 e3/pOFTbU2XxAVYdd7DIyFIlPVoSGlcmi+oE6IbllFOFk+NUusqJn+P6kNf3aC2stqmj MupYdSpOhxyTDLjSkWDugPljrMDs0o9hshWGDBP/tcNRingAZmFl7kdj0UOGwd5LlCRV pqqdLBNAWPWl3eTM6cbZ7zWbzb4GbRpaBVGPPaonRADl8Olek/QWn86usLXhhLIxu3LP u6jP+rfXBFgvJkFJhoq6I6mrILTpzGIYG0bUufk+a+zB4SZwccdhOPbKzAxel0E7ITKv vO9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kOsnqfkleB4RTKhg+gQetUXWhBq1z79rEfuESUt9/Ls=; b=mkXtaoA0Zx2SOFcnCQMxLbfaJvGYlYsWRPreyET5h/yfRKAvjtEczXS3JVkmeIh7Wy JN/ws6TeeU7XsaGwoSfx9ClD7r+MNRr2FZxquLTJj4TybSBRlSYt4U7B4ej3UnzRswde Fy9NqGr7cmQKsQZAnr0XVRiCgTUfFnRtNRg56PYnWW6p5N7YzZQmhNiN+/WgMApEOCXs iwolJCCTryXkqNga0UG63GHQRQ3gJniQP4RECa4y4QNCVlq7PTJOx7/BKhTV8Qsh1dVU qqrObd/2RLB8xmJdOIVAGfCYr0v1w+67lyn408+RpM0oF661QEUFvvYt+571yOi1Mx0k I+FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YbQysCTK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si1172400ple.291.2019.01.14.12.26.34; Mon, 14 Jan 2019 12:26:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YbQysCTK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbfANUZC (ORCPT + 99 others); Mon, 14 Jan 2019 15:25:02 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35281 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfANUZC (ORCPT ); Mon, 14 Jan 2019 15:25:02 -0500 Received: by mail-wr1-f67.google.com with SMTP id 96so428069wrb.2 for ; Mon, 14 Jan 2019 12:25:01 -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:mime-version :content-transfer-encoding; bh=kOsnqfkleB4RTKhg+gQetUXWhBq1z79rEfuESUt9/Ls=; b=YbQysCTKZVHJQnN6+QojnrtCPMq71qfGKzfL/uXzRuEd/YWqObg85PEKo7hERSqoZW ZdOxbNNTCZb0dS2clSxvGS1B5hd2/IYLv2wTQtufUeg75ykIp6J6YCeP68q3CCdGLD0k gxO6/HXevWeTJGPM6+1yIq7Ad7Hn8SAh1hu1I8PueJQs74GaVzpB7qJ+bWxzY08mLb/K wQt9l8uPYhN+hBVd8m9xxy58jqIY45tfDprEjgu5zuVQDSxRmnKINxCpYVvIsQExZhRm d8zeB6MgpE0CspYb6ys9OtjYrdiH4K9GeSXiR6/TvkkoKRNCeAsKWtjGIbAjivHZNsNN DBtg== 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 :mime-version:content-transfer-encoding; bh=kOsnqfkleB4RTKhg+gQetUXWhBq1z79rEfuESUt9/Ls=; b=BelSsDibX3LNS2vl+MzTEhnL+FthOR9a7WyzlbXYhY7v5caYpwYa1qcM2D8BFtO1OX +6iZgUPj08atCfGxVV4bn3FxH7LP2xU0JcCX2rloYXVS7mDaKTN+8pMPKKsOqG6pvi/D YJoBb60E855pT0vX+pQLBYCqz6mTtP2WmJkcYew6zbzz3C9/2XWnvIgG0fblwc75OB81 2gcbfNvcIKQdjWokOpp360Ub/h3v3fm8USDWd1oV/EgdHheeLM4cBegW/vW+v7sL8Fy4 Di32GlLTuKdYbym1VVxV+5ltCJtceTCeu9EwxvPRStLxopVqq7wVYY8ShEKR+p6VmPBb j0pQ== X-Gm-Message-State: AJcUukdI2rU68EdAR86IblDfDBk1+UrooBjpijayayeja9xt623htOi5 v2MoiobjrpT6r/LBT5Z8duo= X-Received: by 2002:adf:9484:: with SMTP id 4mr185663wrr.98.1547497500696; Mon, 14 Jan 2019 12:25:00 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id a132sm35694882wmh.5.2019.01.14.12.24.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:24:59 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id D2AEF11422AD; Mon, 14 Jan 2019 21:24:58 +0100 (CET) From: Mathieu Malaterre To: David Howells Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] lib/assoc_array: annotate implicit fall through Date: Mon, 14 Jan 2019 21:24:54 +0100 Message-Id: <20190114202454.14551-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). This commit remove the following warning: lib/assoc_array.c:1110:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- lib/assoc_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/assoc_array.c b/lib/assoc_array.c index c6659cb37033..0b61d3b77e5c 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c @@ -1115,6 +1115,7 @@ struct assoc_array_edit *assoc_array_delete(struct assoc_array *array, index_key)) goto found_leaf; } + /* fall through */ case assoc_array_walk_tree_empty: case assoc_array_walk_found_wrong_shortcut: default: -- 2.19.2