[dpdk-dev] [PATCH v4 00/10] Fix build errors related to exported headers
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed Jul 20 11:55:09 CEST 2016
2016-07-15 22:03, Bruce Richardson:
> On Wed, Jul 13, 2016 at 03:02:37PM +0200, Adrien Mazarguil wrote:
> > DPDK uses GNU C language extensions in most of its code base. This is fine
> > for internal source files whose compilation flags are controlled by DPDK,
> > however user applications that use exported "public" headers may experience
> > compilation failures when enabling strict error/standard checks (-std and
> > -pedantic for instance).
> >
> > Exported headers are installed system-wide and must be as clean as possible
> > so applications do not have to resort to workarounds.
> >
> > This patchset affects exported headers only, compilation problems are
> > addressed as follows:
> >
> > - Adding the __extension__ keyword to nonstandard constructs (same method
> > as existing libraries when there is no other choice).
> > - Adding the __extension__ keyword to C11 constructs to remain compatible
> > with pure C99.
> > - Adding missing includes so exported files can be included out of order
> > and on their own.
> > - Fixing GNU printf-like variadic macros as there is no magic keyword for
> > these.
> >
>
> Having upgraded to Fedora 24, I'm seeing quite a few errors compiling with gcc
> 6.1.1 in debug mode. Applying this patchset seems to really cut down on those
> errors, so may need to be applied for 16.07 release.
It is reducing the number of warnings but do not completely solve it, right?
It is a very good patchset but it needs to be validated with a large number
of compilers and options. That's why I think it is too late for 16.07.
More information about the dev
mailing list