Re: warning: 'inline' is not at beginning of declaration ?

From: David Schultz <das_at_FreeBSD.ORG>
Date: Tue, 7 Jun 2011 14:48:52 -0400
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.
Received on Tue Jun 07 2011 - 16:59:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC