From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 704DFA0C41; Fri, 29 Oct 2021 19:18:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 632CE410F5; Fri, 29 Oct 2021 19:18:04 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 27D21410E4 for ; Fri, 29 Oct 2021 19:18:02 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10152"; a="211480427" X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="211480427" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 10:18:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="581093440" Received: from jrharri1-clx.ch.intel.com ([143.182.136.99]) by fmsmga002.fm.intel.com with ESMTP; 29 Oct 2021 10:18:01 -0700 From: Jim Harris To: dev@dpdk.org Cc: Jim Harris Date: Fri, 29 Oct 2021 17:16:22 +0000 Message-Id: <20211029171622.330330-1-james.r.harris@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] test-compress-perf: fix unused-but-set-variable error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" clang-13 rightfully complains that the total_deq_ops variable in cperf_cyclecount_op_setup is set but not used, since the final accumulated total_deq_ops results isn't used anywhere. So just remove the total_deq_ops variable. Signed-off-by: Jim Harris --- app/test-compress-perf/comp_perf_test_cyclecount.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/test-compress-perf/comp_perf_test_cyclecount.c b/app/test-compress-perf/comp_perf_test_cyclecount.c index 55559a7d5a..c875ddbdac 100644 --- a/app/test-compress-perf/comp_perf_test_cyclecount.c +++ b/app/test-compress-perf/comp_perf_test_cyclecount.c @@ -76,7 +76,6 @@ cperf_cyclecount_op_setup(struct rte_comp_op **ops, for (iter = 0; iter < num_iter; iter++) { uint32_t remaining_ops = mem->total_bufs; - uint32_t total_deq_ops = 0; uint32_t total_enq_ops = 0; uint16_t num_enq = 0; uint16_t num_deq = 0; @@ -136,7 +135,6 @@ cperf_cyclecount_op_setup(struct rte_comp_op **ops, /* instead of the real dequeue operation */ num_deq = num_ops; - total_deq_ops += num_deq; rte_mempool_put_bulk(mem->op_pool, (void **)ops, num_deq); } -- 2.32.0