From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 299EC2A7 for ; Mon, 16 Jun 2014 03:45:35 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 15 Jun 2014 18:40:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,482,1400050800"; d="scan'208";a="548393577" Received: from shilc102.sh.intel.com ([10.239.39.44]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2014 18:45:50 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shilc102.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5G1jjQs027289; Mon, 16 Jun 2014 09:45:48 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5G1jh6Y032127; Mon, 16 Jun 2014 09:45:45 +0800 Received: (from mcao7@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id s5G1jgdw032123; Mon, 16 Jun 2014 09:45:42 +0800 From: min.cao@intel.com To: dev@dpdk.org Date: Mon, 16 Jun 2014 09:45:40 +0800 Message-Id: <1402883141-32012-1-git-send-email-min.cao@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [dpdk-stv] [PATCH 0/1] Fix the pointer 'ctx1' uninitialized error with gcc4.5.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 01:45:36 -0000 Description: This patch is aimed to fix the the pointer 'ctx1' uninitialized error with gcc4.5.1 as described below. Download dpdk source code from http://dpdk.org, and compile the source code(commit cc333208d5658fea642098b665cd429e6cda54a9). It has the following compilation error on fedora14 with gcc4.5.1 while it is fine on Fedorak20 with gcc4.8.2: "dpdk/lib/librte_kvargs/rte_kvargs.c:51:14: error: 'ctx1' may be used uninitialized in this function" According to the latest DPDK OS Building Test Report(commit:cc333208d5658fea642098b665cd429e6cda54a9, the master branch from http://dpdk.org), this error also occurs on SUSE11SP2_64 with gcc4.5.1, SUSE11SP3_32 with gcc4.5.1 and SUSE11SP3_64 with gcc4.3.4. Initializing the pointer can solve this problem. Signed-off-by: Zhan Zhaochen Acked-by: Liu, Jijiang Tested-by: Waterman Cao Zhan Zhaochen (1): Fix the pointer 'ctx1' uninitialized error with gcc 4.5.1 lib/librte_kvargs/rte_kvargs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) -- 1.7.3.1