From owner-freebsd-current@FreeBSD.ORG Thu Jun 2 23:14:49 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0872C106564A for ; Thu, 2 Jun 2011 23:14:49 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id D272E8FC19 for ; Thu, 2 Jun 2011 23:14:48 +0000 (UTC) Received: by pzk27 with SMTP id 27so781101pzk.13 for ; Thu, 02 Jun 2011 16:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fsqnDVEdMdeO2GP/cZZtTGU9jaS2CtUjC4WV9/7fMFA=; b=rRyucN+hGPPrDVCAAZj9mISO5/lRIMdUhLdwrbQQL4+YGULBFaI73I+/M/EK3GyAy4 KUsZrI3P8c1jmJaamEtrCvua/XnoNkX4fVfB3GM47vAr+BwjJyWHdtBETfQIKQxhAaE2 HP6JbmZo4FhVwZVzIdgr1t7oPIZmPwOoKXeXk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sS/gCEXrq16XO0zizm/iljfqdYfq/ZYVrUsSa4qMr67W6iQaIsYKCvn33fh/PCqcAD DlTQWM3Plju0/B+Y9TE7cf4wyLNA8o4Kg1HOMaDl7FPat+ZsRVyqIl4YEZ3UVCdW/QvU Xdt1//c+iBzFgzAVfLmXEn/XcAVqARM0pDgMY= MIME-Version: 1.0 Received: by 10.68.31.137 with SMTP id a9mr534120pbi.202.1307056487528; Thu, 02 Jun 2011 16:14:47 -0700 (PDT) Received: by 10.68.52.164 with HTTP; Thu, 2 Jun 2011 16:14:47 -0700 (PDT) In-Reply-To: <20110601165429.GA16569@onelab2.iet.unipi.it> References: <20110601165429.GA16569@onelab2.iet.unipi.it> Date: Thu, 2 Jun 2011 19:14:47 -0400 Message-ID: From: Arnaud Lacombe To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: warning: 'inline' is not at beginning of declaration ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 23:14:49 -0000 Hi, On Wed, Jun 1, 2011 at 12:54 PM, Luigi Rizzo 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 , 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 , 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= " >