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 B52F6A0545 for ; Tue, 7 Jun 2022 05:20:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8AD7440156; Tue, 7 Jun 2022 05:20:19 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id AC3CC40156 for ; Tue, 7 Jun 2022 05:20:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654572018; x=1686108018; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zNinmEwphy1ZzvK6Cis5cYk/+vwI26CAWbNRYJ7J1PY=; b=BkeOas34ErXQneVNsEJGDR8OyLuNC65HBbh9BK4931Jly+hQjyU3vRM+ ubzWmnNNPiL9fF+a64E9NkdsfNtfW9733grvV1SHEFYMbUnj80Ktm+Pah AksbwrDvrap35T+5XQwPYso20S0UyxPfQU45vAZS4mncvUljcVUO6FyU1 D2Og3dcd5yBOVZBzRnlX1CY0poZKhipzyYtB2Swt3hYHrP4hp9k6iN0Pu xJyiWc6Wr4ovb+AAzYL2bD0Lmk6RhspNdViRwYYri/b2Lljr7k4fiPCvS Wb8r/5wD4xXL+qnJeZgdHUIl4CsHvcVU1osHC2l45CafimT41vcDgAkaX Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10370"; a="340270431" X-IronPort-AV: E=Sophos;i="5.91,282,1647327600"; d="scan'208";a="340270431" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 20:20:13 -0700 X-IronPort-AV: E=Sophos;i="5.91,282,1647327600"; d="scan'208";a="635912396" Received: from unknown (HELO localhost.localdomain) ([10.239.251.3]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 20:20:11 -0700 From: wenxuanx.wu@intel.com To: bruce.richardson@intel.com Cc: Wenxuan Wu , stable@dpdk.org Subject: [PATCH] build: fix meson build when gcc >= 10.0 Date: Tue, 7 Jun 2022 02:55:44 +0000 Message-Id: <20220607025544.1113917-1-wenxuanx.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Wenxuan Wu GCC version greater than 10.0, with compile option -O2, several warnings info would appear, this fix omitted these warnings. Fixes: cfacbcb5a23b ("build: disable gcc 10 zero-length-bounds warning") Cc: stable@dpdk.org Signed-off-by: Wenxuan Wu --- config/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index 7134e80e8d..97f0ea6cca 100644 --- a/config/meson.build +++ b/config/meson.build @@ -273,7 +273,12 @@ warning_flags = [ ] if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') # FIXME: Bugzilla 396 - warning_flags += '-Wno-zero-length-bounds' + warning_flags += [ + '-Wno-zero-length-bounds', + '-Wno-stringop-overflow', + '-Wno-array-bounds', + '-Wno-format-overflow', + ] endif if not dpdk_conf.get('RTE_ARCH_64') # for 32-bit, don't warn about casting a 32-bit pointer to 64-bit int - it's fine!! -- 2.25.1