From owner-freebsd-current@FreeBSD.ORG Fri Jun 3 00:05:07 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 E39391065673 for ; Fri, 3 Jun 2011 00:05:07 +0000 (UTC) (envelope-from jdneal@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 735938FC0C for ; Fri, 3 Jun 2011 00:05:07 +0000 (UTC) Received: by fxm11 with SMTP id 11so1487779fxm.13 for ; Thu, 02 Jun 2011 17:05:06 -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=FNfP/ore/2MPrcFDl+ayzo/QFDdD4POCHd8KkfB3rr0=; b=fsRBoO7FDav67jumoBPUxfgqdvpLJGAc334wvRKi65SH+/oAbLbSJCAib6tDIpjuqT EI8MD452MmYjjT1zvwe1e1FfssrTAZs/X3jH6TZY+j/pu1LdYgA+9MTlwqy/AlEH0c8N la/MxSh8iZinctG9tzfXMBrLIBiwqJQuZkjQI= 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=Fs61SLJn9+virevm9DbUhzE13+7U8EETAT6InmVVnI+8c/jYOI9laTLSXjzE88cWlP uu7PW1fQLTOhEV92qp6TjdrG7MSB7cMeB4H1XbvtocXiuDVFGbSY6ZIXO/w03zgLtwM0 ir1lOfsV5nuHKI2s25zMv3wOU/fk6S/qXvWDY= MIME-Version: 1.0 Received: by 10.223.55.201 with SMTP id v9mr677531fag.76.1307058005778; Thu, 02 Jun 2011 16:40:05 -0700 (PDT) Received: by 10.223.120.17 with HTTP; Thu, 2 Jun 2011 16:40:05 -0700 (PDT) In-Reply-To: <20110601165429.GA16569@onelab2.iet.unipi.it> References: <20110601165429.GA16569@onelab2.iet.unipi.it> Date: Thu, 2 Jun 2011 16:40:05 -0700 Message-ID: From: Joshua Neal 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: Fri, 03 Jun 2011 00:05:08 -0000 A compile-with clause in the sys/conf/files configuration file may work for what you want, e.g. picking a random example: dev/e1000/e1000_82542.c optional em | igb \ compile-with "${NORMAL_C} -I$S/dev/e1000" - Joshua On Wed, Jun 1, 2011 at 9:54 AM, 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 tried to put a Makefile.inc in a subdirectory but it > did not help. > > 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= " >