From patchwork Thu May 4 15:38:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 24100 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 0F6437D1E; Thu, 4 May 2017 17:38:52 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8B1297CEA; Thu, 4 May 2017 17:38:39 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 May 2017 08:38:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,287,1491289200"; d="scan'208";a="97638807" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by fmsmga006.fm.intel.com with ESMTP; 04 May 2017 08:38:38 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , stable@dpdk.org Date: Thu, 4 May 2017 16:38:21 +0100 Message-Id: <20170504153822.19461-10-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170504153822.19461-1-bruce.richardson@intel.com> References: <20170504153822.19461-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 09/10] test/test: fix missing break in switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Issue flagged by GCC 7 as a switch fall-through. Fixes: dbb860e03eb1 ("cmdline: tests") CC: stable@dpdk.org Signed-off-by: Bruce Richardson --- test/test/test_cmdline_num.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test/test_cmdline_num.c b/test/test/test_cmdline_num.c index 04263d3..e8f60cf 100644 --- a/test/test/test_cmdline_num.c +++ b/test/test/test_cmdline_num.c @@ -315,6 +315,7 @@ can_parse_signed(int64_t expected_result, enum cmdline_numtype type) case UINT64: if (expected_result < 0) return 0; + break; case INT8: if (expected_result > INT8_MAX || expected_result < INT8_MIN) return 0;