Dropped this patch, it is better to let the application to decide the warning level.
BR, Haiyue > -----Original Message----- > From: Wang, Haiyue <haiyue.w...@intel.com> > Sent: Wednesday, April 29, 2020 14:49 > To: dev@dpdk.org; Richardson, Bruce <bruce.richard...@intel.com>; Ananyev, > Konstantin > <konstantin.anan...@intel.com>; Stokes, Ian <ian.sto...@intel.com> > Cc: Wang, Haiyue <haiyue.w...@intel.com> > Subject: [PATCH v2] eal: ignore alignment warnings for x86 vector > > There several alignment warnings when including rte_memcpy header file > externally like OVS for x86. > > Signed-off-by: Haiyue Wang <haiyue.w...@intel.com> > --- > 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