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 CEC39A00C5; Sun, 25 Sep 2022 11:22:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79C7E400D4; Sun, 25 Sep 2022 11:22:40 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2053.outbound.protection.outlook.com [40.107.102.53]) by mails.dpdk.org (Postfix) with ESMTP id 428BE4003F for ; Sun, 25 Sep 2022 11:22:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IWNGpZHvtEVGmOiI++gs/AmSqCy8f0Qu5Ox/2v1kJsi/Nbfb0ifCxWtZoKy79fPQzrt+JDmKT11wDh3MVH7dvt1IOHJ3+q58Sg8gwNyeofLyGzMRp0S0bl8UW0gTrCHjehfKLiPzvXXHPd8tLMwu6VkmTNYhSZKcQp1lrBS73soR7eQjeYrFw7Pa+yrNsI87oty6ZxxsJq9cDuasg0uL6hBKD63/mf1nL85Xw1kBC6bRMp2TL93O8dModPM58otd8q+4IWE1Iyjap9FFr3QWoyGb4PqtbkPMdUEbdjRpgyfC/uPlkBOJVSKBCZK3xoeY8Cxb5KtsZnQUnORXL9ap/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vahFW7fs1mcsykaxryqk7wNQBu7fnIge8RJsJuoWTNo=; b=ANacl/Q2fao0TVHwwABQmnSsl6b77ppK1Nt8n/hsW9zj40ULYjREtlwxzGYty89aHDprJlRtaimJZHmL9J9Uxx9aThteOqDRCwhT7Mj9VAcIVTHjrWhgiDxhNvdRwa1gOnQEIWUfxSxqMekBNyvMKYZ/uezal5qCQdU0aTdWcXCtDul9vTdYo4jYduaKIpPiB4ISkW1QJZc5qrhFKNQbY05sZORZl07NFFW17t4+Emy0abi4mj6cZ9/LhPloJJlKuNiFjO+y3aoY7Nm/wkcIBsnfaFu9VSKXNS1UxbSIzFr3H0mEUVr+Os/dK2v29AapBqdhlCmfG4ARjZNRGR3+Gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vahFW7fs1mcsykaxryqk7wNQBu7fnIge8RJsJuoWTNo=; b=lzbNlIiUg/5B2BCST6S/6Wgad+Kx/52aiIvB6/8FCUfFlJ/XUeh2ZAl5cJMVkszQLESnYDophBwo4jCAxbXtyqCEPAOo7gSHRqocfmsYt71bRpUxdfydXaYI04fAKRhmyU1fxVBwoynfw8YYrXxgs+onv/VdglKtFVX0z1fdL/Ca7TSgHh30+lMX8bn17AOgo4AGHGFqZ2Jgt+bBPD9AfDgrSytdBAWFSHBL6eDJM1MzJpKKAY11CIp7f6iqcGtF1+7e/5nB5ZEsZ7vO4x/0CkktSlOJOYA3kjDfDDwSs7Y0lsOkcIvAg6dv9AOta13Iqyrz11EjQbPwljMzcT18BQ== Received: from DM6PR11CA0050.namprd11.prod.outlook.com (2603:10b6:5:14c::27) by DM4PR12MB6638.namprd12.prod.outlook.com (2603:10b6:8:b5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.20; Sun, 25 Sep 2022 09:22:37 +0000 Received: from DM6NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:5:14c:cafe::67) by DM6PR11CA0050.outlook.office365.com (2603:10b6:5:14c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24 via Frontend Transport; Sun, 25 Sep 2022 09:22:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT061.mail.protection.outlook.com (10.13.173.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Sun, 25 Sep 2022 09:22:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Sun, 25 Sep 2022 02:22:28 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Sun, 25 Sep 2022 02:22:26 -0700 From: Ali Alnubani To: CC: Subject: [PATCH] examples/pipeline: fix build with some compilers Date: Sun, 25 Sep 2022 12:20:37 +0300 Message-ID: <20220925092037.440076-1-alialnu@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT061:EE_|DM4PR12MB6638:EE_ X-MS-Office365-Filtering-Correlation-Id: b5773934-cf3e-4c43-f42e-08da9ed77cc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i+Pw9Pw7CNwEBXCPuakP2efbaU3+Yvpbjb5WZyQHqGuOH+csZ+MXGsHmiRuShfiBopn5oTDHLUq1UhASV5KpcXJfmkcZC3QXN2uFsSjQDDMMkQa2w+gIov0vDVzKpzo8US7psGdx1pUKP0Gz2eLY5zw/Xfw7B/I2UCxyFih96IiYU4Z6Di2fGCPGft+fh8ZqnOiGZQ47jK6yRvXUUpBT3ckZnA058Ncw75mrOqROcAoFVdZsUzfLoqRco2Y/LQU9SjbsVYkkKhLikg4c2hAIc3SXS4Ydpt+Qsufr21e51aR+K2GPSROawS9nbxUghmwGofD6ekFlvLAFJvfwlF2ft2Bq/rj5zE9h1XQc0VGePfyV1ZXNr+4P9yT1bVERIbuqon0WrEpfvzNc0KZtzgBIqpT91yUUnCmwmlHTz/Vs01AujRRM6/RY7YNz7+/DOsKV5ayLVpXP8d8SnhFo5vD7fNxORitIWkl9P0CERodO6Z4MFZ/QSl/HlfYVzmFwGdl7BNkaCN0+NOBqenyCow5c+YsHOI2RDRck0PJSdqOLjuHBejrh2G14LJSStnKKYApmNekPzypc4IW4ZnqtXcQ+PxWgoDPYjWp1ehmK4w5IGorKM3KWigfvX/c6YzdbNU8aAqAdozMEbNU1hhZyHn9KoLl3Hp8alFNiCBQqfUeDiE2VhPAIOdPm3gXd4VgcEQHKG4HlMjPwTdrUvKIUy1k1xYnZC5OFpTBnhfw2O3uPZGrmctMqjnDDXCa8OXp0zyxpZuq1hYFAt2dRGd+1ACpXGA== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230022)(4636009)(136003)(396003)(346002)(376002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(83380400001)(36860700001)(1076003)(426003)(7696005)(186003)(82740400003)(316002)(47076005)(5660300002)(16526019)(6916009)(41300700001)(336012)(4326008)(6666004)(356005)(7636003)(2906002)(6286002)(70206006)(70586007)(82310400005)(40460700003)(478600001)(8676002)(8936002)(40480700001)(36756003)(26005)(2616005)(86362001)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2022 09:22:37.3510 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5773934-cf3e-4c43-f42e-08da9ed77cc6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6638 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 Fixes the following build failure with gcc 5.4.0 because of uninitialized variables: [..] examples/pipeline/cli.c:1801:10: error: 'idx' may be used uninitialized in this function [-Werror=maybe-uninitialized] [..] examples/pipeline/cli.c:1916:10: error: 'idx' may be used uninitialized in this function [-Werror=maybe-uninitialized] [..] Fixes: 83f58a7b7b0a ("examples/pipeline: add commands for direct registers") Cc: cristian.dumitrescu@intel.com Signed-off-by: Ali Alnubani --- examples/pipeline/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index 35beb1139f..8013541c4b 100644 --- a/examples/pipeline/cli.c +++ b/examples/pipeline/cli.c @@ -1786,7 +1786,7 @@ cmd_pipeline_regrd(char **tokens, /* index. */ if (!strcmp(tokens[4], "index")) { - uint32_t idx; + uint32_t idx = 0; if (n_tokens != 6) { snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]); @@ -1901,7 +1901,7 @@ cmd_pipeline_regwr(char **tokens, /* index. */ if (!strcmp(tokens[6], "index")) { - uint32_t idx; + uint32_t idx = 0; if (n_tokens != 8) { snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]); -- 2.25.1