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 B7A77A00BE; Wed, 29 Apr 2020 09:04:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B3F01D8E1; Wed, 29 Apr 2020 09:04:13 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 94C7C1D8DB for ; Wed, 29 Apr 2020 09:04:11 +0200 (CEST) IronPort-SDR: U24Qt2jA/nLAhe54S7Wt6+CQenSC4ciLrbqt87m53wTzUJvxGYnEgOGaKZmoj04fKmd1hwuyE6 edDuXT0/7vlw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 00:04:10 -0700 IronPort-SDR: 7iKzU9ojDPHTPOlqWqb5162WA7AZDV2aB0iz/7LN3hcRBIA+tTox3/ZVm54TPAC3Xp7ORDMqco 2ZbYZxcGdsCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,330,1583222400"; d="scan'208";a="432463898" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.119.70]) by orsmga005.jf.intel.com with ESMTP; 29 Apr 2020 00:04:08 -0700 From: Haiyue Wang To: dev@dpdk.org, bruce.richardson@intel.com, konstantin.ananyev@intel.com, ian.stokes@intel.com Cc: Haiyue Wang Date: Wed, 29 Apr 2020 14:49:06 +0800 Message-Id: <20200429064906.11496-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200429052624.20742-1-haiyue.wang@intel.com> References: <20200429052624.20742-1-haiyue.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] eal: ignore alignment warnings for x86 vector 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" There several alignment warnings when including rte_memcpy header file externally like OVS for x86. Signed-off-by: Haiyue Wang --- v2: Use __GUNC__ macro to apply for suppressing the warning. --- lib/librte_eal/x86/include/rte_memcpy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/x86/include/rte_memcpy.h b/lib/librte_eal/x86/include/rte_memcpy.h index ba44c4a32..d4cfe8dd5 100644 --- a/lib/librte_eal/x86/include/rte_memcpy.h +++ b/lib/librte_eal/x86/include/rte_memcpy.h @@ -22,6 +22,10 @@ extern "C" { #endif +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wcast-align" +#endif + /** * Copy bytes from one location to another. The locations must not overlap. * -- 2.26.2