From patchwork Fri Oct 13 09:20:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "De Lara Guarch, Pablo" X-Patchwork-Id: 30340 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B0B71B678; Fri, 13 Oct 2017 11:20:20 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 972AF1B3A2 for ; Fri, 13 Oct 2017 11:20:18 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 13 Oct 2017 02:20:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,370,1503385200"; d="scan'208";a="322826121" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by fmsmga004.fm.intel.com with ESMTP; 13 Oct 2017 02:20:16 -0700 From: Pablo de Lara To: declan.doherty@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Fri, 13 Oct 2017 10:20:14 +0100 Message-Id: <20171013092014.23194-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] app/crypto-perf: fix build with Ofast 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" app/test-crypto-perf/main.c:596:6: error: ‘total_nb_qps’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (i == total_nb_qps) ^ Fixes: c4f916e33226 ("app/crypto-perf: support multiple queue pairs") Signed-off-by: Pablo de Lara --- app/test-crypto-perf/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index aaa5830..29373f5 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -424,6 +424,7 @@ main(int argc, char **argv) struct rte_mempool *session_pool_socket[RTE_MAX_NUMA_NODES] = { 0 }; int nb_cryptodevs = 0; + uint16_t total_nb_qps = 0; uint8_t cdev_id, i; uint8_t enabled_cdevs[RTE_CRYPTO_MAX_DEVS] = { 0 }; @@ -509,7 +510,7 @@ main(int argc, char **argv) if (!opts.silent) show_test_vector(t_vec); - uint16_t total_nb_qps = nb_cryptodevs * opts.nb_qps; + total_nb_qps = nb_cryptodevs * opts.nb_qps; i = 0; uint8_t qp_id = 0, cdev_index = 0;