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 0AC6D42A2F; Tue, 2 May 2023 15:49:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0876542B8E; Tue, 2 May 2023 15:49:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 9E28740ED8; Tue, 2 May 2023 15:49:51 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 342CVYhN026341; Tue, 2 May 2023 06:49:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=o2VLQWe2DXWitCCIVX7Jh+qQNJQB4zHGhXCBorBt0d4=; b=HVoPZkT/uF9ASETzqmXeEnv1x59fxnUdnAga6ApoPbRpMfys3yCf+spuXPdGAqtK+MLX c1P+zofBOJXzb+gN0ZFH7bybvx24idifw/T5XLdQhf7NPqItQ9CLstinU8YGdZld2lbA y84TaMyFjpHyuclrC3bJc7sh2ey2n5Qy84x7OQkpQj9UfsHSL/sIDvvsIwqHeAxihsl2 wi4enpZkM916RfJrCcFIUezzYri1LtjCNLF5oH1/N7pf5uu6IaU4k4kF42oAufjHGXhG 51l6b5NxMIibFgoybSGtL+W/GItedwxLt8dWd2TSvGBflXBVZ7Jyfx3T0SJYAijAhx2r 0A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qavhehk5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 May 2023 06:49:50 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 2 May 2023 06:49:36 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 2 May 2023 06:49:36 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id C15085B692D; Tue, 2 May 2023 06:49:33 -0700 (PDT) From: To: CC: , , , , Jerin Jacob , Subject: [dpdk-dev] [PATCH v1] examples/ip_pipeline: fix build issue with GCC 13 Date: Tue, 2 May 2023 19:19:22 +0530 Message-ID: <20230502134923.3536075-1-jerinj@marvell.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: R-B6a1RL3PqaMgyYlpSRvIacoGJ2fJoh X-Proofpoint-GUID: R-B6a1RL3PqaMgyYlpSRvIacoGJ2fJoh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-02_08,2023-04-27_01,2023-02-09_01 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 From: Jerin Jacob Fix the following build issue by initializing req to NULL for the local variable. In function 'thread_msg_handle', inlined from 'thread_main' at ../examples/ip_pipeline/thread.c:3130:6: ../examples/ip_pipeline/thread.c:535:20: warning: 'req' may be used uninitialized [-Wmaybe-uninitialized] 535 | if (req == NULL) | ^ ../examples/ip_pipeline/thread.c: In function 'thread_main': ../examples/ip_pipeline/thread.c:433:32: note: 'req' was declared here 433 | struct thread_msg_req *req; Bugzilla ID: 1220 Fixes: a8bd581de397 ("examples/ip_pipeline: add thread runtime") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob --- examples/ip_pipeline/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c index 82d5f87c38..9817657ca9 100644 --- a/examples/ip_pipeline/thread.c +++ b/examples/ip_pipeline/thread.c @@ -430,7 +430,7 @@ thread_pipeline_disable(uint32_t thread_id, static inline struct thread_msg_req * thread_msg_recv(struct rte_ring *msgq_req) { - struct thread_msg_req *req; + struct thread_msg_req *req = NULL; int status = rte_ring_sc_dequeue(msgq_req, (void **) &req); -- 2.40.1