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 B9386A0547 for ; Tue, 7 Jun 2022 05:21:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3C6341611; Tue, 7 Jun 2022 05:21:16 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 8FD3940156; Tue, 7 Jun 2022 05:21:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654572074; x=1686108074; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zNinmEwphy1ZzvK6Cis5cYk/+vwI26CAWbNRYJ7J1PY=; b=OPDTk81Eni3U8NdGdAOiou8YcXNUdkR239ttNonPMj3fuGYBfN7ndrB6 bEpqeVpPjODotxMVvlM6SlZHsrKZpjScLX6ykhcfa0GeGV3g1Tk8gMWL+ bQiyi8OgfhKbQWduMCDtEtKI13IjtnMOSSuHEAHXqBfsF1PM07JIIfu6s xK9RqtgctxBHvsRNVNKNoq+G7ZMLMajcLgf/CD6lL3CH+i8diVU7HhdOU A1prYTLCeiO3FIG5TC2Rt+uxXwjNCoHAKwlTxaxEgt3D1NizRq7cinwke Xh5PgJBpPvcniA3FDM7zgn+kOPs/uIqgg9yn8UOIVMVhOTYLYYtAuzGOV Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10370"; a="363048171" X-IronPort-AV: E=Sophos;i="5.91,282,1647327600"; d="scan'208";a="363048171" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 20:21:13 -0700 X-IronPort-AV: E=Sophos;i="5.91,282,1647327600"; d="scan'208";a="614702869" Received: from unknown (HELO localhost.localdomain) ([10.239.251.3]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 20:21:11 -0700 From: wenxuanx.wu@intel.com To: bruce.richardson@intel.com, dev@dpdk.org Cc: Wenxuan Wu , stable@dpdk.org Subject: [PATCH] build: fix meson build when gcc >= 10.0 Date: Tue, 7 Jun 2022 02:56:52 +0000 Message-Id: <20220607025652.1114683-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