From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C471A2EFC for ; Tue, 17 Sep 2019 09:58:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A96561BFC0; Tue, 17 Sep 2019 09:58:07 +0200 (CEST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by dpdk.org (Postfix) with ESMTP id 7E5921BFAA for ; Tue, 17 Sep 2019 09:57:59 +0200 (CEST) Received: by mail-lf1-f54.google.com with SMTP id w6so2103058lfl.2 for ; Tue, 17 Sep 2019 00:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z5DzTIxEt5+ANVdQni1kRcJ+xYX6pxDF0HUGiUlFpcM=; b=oIihGSzSSFDQg8+OfmlXe7S11oBeKrUettRreWfXf5VsoroKW5ddi2xC+h8dASTluw z1IG6+Pf5V5APmjVzZVw7UG+YWpFtoaAurwI/3OqGvXVJLzZGvgzZDws5Qs6D5OKYZbG ZK0/+YmMs0K5JR6yTSiq188OJ+zmeCFke4ubDY4yunWw5dZ0vXEyv7ina6PdfAZ4roLI 38dbavirfeqfpTwuauQoa0CewHTDir5u6ZJKdarYG0DQ+BGFwil9sRKgtpOe475wXol7 6BxztrY1LZIEdaXFrqc9tYxwrgnEfjjyGj6lZ4uiZvphkQv8R8OJs1IKDoHAuPPaICVe MaCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z5DzTIxEt5+ANVdQni1kRcJ+xYX6pxDF0HUGiUlFpcM=; b=cIqmBeQpFQiiKOGWfoU3H/v1E3X+g0pYfXc4TD5G3/B+jadeM05yRR4yHYRcfZSpye OxdEQtMZxxHOFpgjqDVPUV7TquSZk6KQ0po/IsZ/YO6lKGZ4DpcUXIgG5EEPUq6Rl4gz 13Fl1yN6IIgtDCj45JRx/U8t4nlNwD+JAizjWKKwla1oEmTuRjLUb/Fvi9GE8kIC55mW AwlLwERYWs0sqvkE/MS4ZAa/l/Fu40i+EnTAal5md1OHDNuqHhoUuvetfB4sCsaCH4Ic rZMki9FJWka1ZzHN8r6iDonS1is3zGoC8E+dJyQZ8Xe8uL8WxgKiOd8ni0A7PPBeXEF1 h0+A== X-Gm-Message-State: APjAAAUryeAp/uDmnnvJqNV0UpqVVmlMiEro+ZJWx3LMkeAWKEarjYlt cZZaRvKIxtZFQBCZEfwTEaoVY9a/RyI= X-Google-Smtp-Source: APXvYqx0rgl6jIpHdJQuawvUvVs2uB1PfICW0x3R6BLOC0oGQOVvfNtZdzlprh0scM9waUyP5kN7Jw== X-Received: by 2002:a19:cc15:: with SMTP id c21mr1348298lfg.64.1568707079053; Tue, 17 Sep 2019 00:57:59 -0700 (PDT) Received: from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id g1sm270659ljl.31.2019.09.17.00.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 00:57:58 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org, Jerin Jacob Cc: mattias.ronnblom@ericsson.com, stephen@networkplumber.org, Andrzej Ostruszka Date: Tue, 17 Sep 2019 09:57:47 +0200 Message-Id: <20190917075754.8310-4-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190917075754.8310-1-amo@semihalf.com> References: <20190917075754.8310-1-amo@semihalf.com> Subject: [dpdk-dev] [PATCH v2 03/10] app/eventdev: fix maybe-uninitialized warnings for LTO build 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" During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Signed-off-by: Andrzej Ostruszka --- app/test-eventdev/test_perf_common.c | 2 +- app/test-eventdev/test_pipeline_common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index aa925a7ef..a974685cb 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -439,7 +439,7 @@ perf_event_timer_adapter_setup(struct test_perf *t) if (!(adapter_info.caps & RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_timer_adapter_service_id_get(wl, &service_id); diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c index 16c49b860..813d0cf44 100644 --- a/app/test-eventdev/test_pipeline_common.c +++ b/app/test-eventdev/test_pipeline_common.c @@ -306,7 +306,7 @@ pipeline_event_rx_adapter_setup(struct evt_options *opt, uint8_t stride, } if (!(cap & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_eth_rx_adapter_service_id_get(prod, &service_id); @@ -358,7 +358,7 @@ pipeline_event_tx_adapter_setup(struct evt_options *opt, } if (!(cap & RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_eth_tx_adapter_service_id_get(consm, &service_id); -- 2.17.1