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

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Wed, 1 Jun 2011 18:54:29 +0200
In an attempt to build a kernel with -Wextra gives a number
of warnings for

	'inline' is not at beginning of declaration

(in tcp_input.c, as an example).

Is there any interest in trying to fix these ?

	HEAD/sys/netinet/tcp_input.c:218: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:224: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:226: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:227: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:228: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:248: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:266: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:298: warning: 'inline' is not at beginning of declaration
	HEAD/sys/netinet/tcp_input.c:388: warning: 'inline' is not at beginning of declaration
	HEAD/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 tried to put a Makefile.inc in a subdirectory but it
did not help.

cheers
luigi
Received on Wed Jun 01 2011 - 14:38:32 UTC

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