bin/124431: [patch] minor revision of BDECFLAGS

Pietro Cerutti gahr at FreeBSD.org
Mon Jun 9 21:10:02 UTC 2008


>Number:         124431
>Category:       bin
>Synopsis:       [patch] minor revision of BDECFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>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:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list