From owner-freebsd-current@FreeBSD.ORG Tue Jun 7 18:59:03 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 A8145106564A for ; Tue, 7 Jun 2011 18:59:03 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 6E5C28FC0A for ; Tue, 7 Jun 2011 18:59:03 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.4/8.14.2) with ESMTP id p57Imr0o015005; Tue, 7 Jun 2011 14:48:53 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.4/8.14.2/Submit) id p57ImqL7015004; Tue, 7 Jun 2011 14:48:52 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 7 Jun 2011 14:48:52 -0400 From: David Schultz To: Arnaud Lacombe Message-ID: <20110607184852.GA14956@zim.MIT.EDU> Mail-Followup-To: Arnaud Lacombe , Luigi Rizzo , current@freebsd.org References: <20110601165429.GA16569@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Luigi Rizzo , 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: Tue, 07 Jun 2011 18:59:03 -0000 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 , 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'. 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.