Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2011 19:14:47 -0400
From:      Arnaud Lacombe <lacombar@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        current@freebsd.org
Subject:   Re: warning: 'inline' is not at beginning of declaration ?
Message-ID:  <BANLkTimhT33nZda11g5q800183waX5KdPQ@mail.gmail.com>
In-Reply-To: <20110601165429.GA16569@onelab2.iet.unipi.it>
References:  <20110601165429.GA16569@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Wed, Jun 1, 2011 at 12:54 PM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:
> In an attempt to build a kernel with -Wextra gives a number
> of warnings for
>
> =A0 =A0 =A0 =A0'inline' is not at beginning of declaration
>
> (in tcp_input.c, as an example).
>
> Is there any interest in trying to fix these ?
>
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:218: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:224: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:226: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:227: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:228: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:248: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:266: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:298: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:388: warning: 'inline' is not=
 at beginning of declaration
> =A0 =A0 =A0 =A0HEAD/sys/netinet/tcp_input.c:440: warning: 'inline' is not=
 at beginning of declaration
>
> 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'.

 - Arnaud

> cheers
> luigi
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimhT33nZda11g5q800183waX5KdPQ>