warning: 'inline' is not at beginning of declaration ?
David Schultz
das at FreeBSD.ORG
Tue Jun 7 18:59:03 UTC 2011
On Thu, Jun 02, 2011, Arnaud Lacombe wrote:
> > On a related topic, do we have any mechanism to provide
> > per-subdir or per-file CFLAGS during kernel builds ?
> >
> I'd say no as the kernel per-se makes no use of <bsd.subdir.mk>, ooth,
> some modules do.
>
> > I tried to put a Makefile.inc in a subdirectory but it
> > did not help.
> >
> understandable, as Makefile.inc is sourced by <bsd.init.mk>, which is
> only used by `sys/conf/kmod.mk'.
There's a hack to do per-file CFLAGS in libc. We use this to
compile the vendor sources gdtoa_*.c with warnings disabled, since
the vendor disavows gcc's stylistic complaints. See
src/lib/libc/Makefile.
More information about the freebsd-current
mailing list