From gahr@FreeBSD.org  Mon Jun  9 21:02:48 2008
Return-Path: <gahr@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4741B106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jun 2008 21:02:48 +0000 (UTC)
	(envelope-from gahr@FreeBSD.org)
Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73])
	by mx1.freebsd.org (Postfix) with ESMTP id 087808FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jun 2008 21:02:48 +0000 (UTC)
	(envelope-from gahr@FreeBSD.org)
Received: from [213.142.183.219] (helo=gahrtop.localhost)
	by cpanel03.rubas-s03.net with esmtpa (Exim 4.68)
	(envelope-from <gahr@FreeBSD.org>)
	id 1K5oVi-0003Pi-2M
	for FreeBSD-gnats-submit@freebsd.org; Mon, 09 Jun 2008 23:02:38 +0200
Received: from gahrtop.localhost (localhost [127.0.0.1])
	by gahrtop.localhost (Postfix) with ESMTP id 86E2650841
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Jun 2008 23:02:32 +0200 (CEST)
Message-Id: <1213045352.52117@gahrtop.localhost>
Date: Mon, 9 Jun 2008 23:02:32 +0200
From: "Pietro Cerutti" <gahr@FreeBSD.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [patch] minor revision of BDECFLAGS
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         124431
>Category:       misc
>Synopsis:       [build] [patch] minor revision of BDECFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bde
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 09 21:10:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Feb 17 11:52:11 UTC 2010
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
The FreeBSD Project 
>Environment:


System: FreeBSD 8.0-CURRENT #43: Mon Jun  9 22:19:27 CEST 2008
    root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


BDECFLAGS contain the -ansi switch, which doesn't allow them to be used
to build world (at least, on CURRENT).

Since we use a few features from C99, I think it would be good to change
the default C standard in BDECFLAGS.


>How-To-Repeat:





>Fix:


--- make.conf.diff begins here ---
Index: make.conf
===================================================================
RCS file: /home/ncvs/src/share/examples/etc/make.conf,v
retrieving revision 1.279
diff -u -u -r1.279 make.conf
--- make.conf	17 Jan 2007 12:43:06 -0000	1.279
+++ make.conf	9 Jun 2008 20:56:01 -0000
@@ -77,7 +77,7 @@
 # putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf.  -Wconversion is not
 # included here due to compiler bugs, e.g., mkdir()'s mode_t argument.
 #
-#BDECFLAGS=	-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
+#BDECFLAGS=	-W -Wall -std=c99 -pedantic -Wbad-function-cast -Wcast-align \
 #		-Wcast-qual -Wchar-subscripts -Winline \
 #		-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
 #		-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
--- make.conf.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bde  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Wed Feb 17 11:51:25 UTC 2010 
Responsible-Changed-Why:  
bde should probably decide what goes in BDECFLAGS. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124431 
>Unformatted:
