diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf index 7a5a5faebcd7..f88564b60f7a 100644 --- a/etc/defaults/make.conf +++ b/etc/defaults/make.conf @@ -26,6 +26,15 @@ # #CXXFLAGS+= -fmemoize-lookups -fsave-memoized # +# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested +# for use in developing FreeBSD and testing changes. They can be used by +# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. +# +BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ + -Wcast-qual -Wchar-subscripts -Wconversion -Winline \ + -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ + -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings +# # Avoid compiling profiled libraries #NOPROFILE= true # diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index 7a5a5faebcd7..f88564b60f7a 100644 --- a/share/examples/etc/make.conf +++ b/share/examples/etc/make.conf @@ -26,6 +26,15 @@ # #CXXFLAGS+= -fmemoize-lookups -fsave-memoized # +# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested +# for use in developing FreeBSD and testing changes. They can be used by +# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. +# +BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ + -Wcast-qual -Wchar-subscripts -Wconversion -Winline \ + -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ + -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings +# # Avoid compiling profiled libraries #NOPROFILE= true #