[dpdk-dev] [PATCH] test: Disable strict-aliasing warnings

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Mar 27 11:00:38 CET 2015


2015-03-27 09:29, De Lara Guarch, Pablo:
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com]
> > 2015-03-26 19:17, Pablo de Lara:
> > > DPDK does not build on gcc 4.4, as it complains due to
> > > strict-aliasing rules in virtual_pmd and link_bonding_mode4 tests,
> > > with no errors in next gcc versions:
> > 
> > Do you mean it's not possible to fix it in the code?
> > You are disabling some checks which may be relevant.
> 
> I mean it is possible to fix, but probably not worth it, considering that
> newer gcc versions have no issues (and gcc 4.4 is from 2011).
> I have seen that there are other libraries that disable these warnings as well,
> so I assumed we could do the same here.

It is preferred to avoid doing it.



More information about the dev mailing list