bsd.sys.mk: add links and update a bit
- add links to more modern resources - remove 'k&r' which is unused in FreeBSD - remove stray comment
This commit is contained in:
parent
e8d9a1edb3
commit
5d1ee539dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334080
@ -6,16 +6,16 @@
|
|||||||
# Enable various levels of compiler warning checks. These may be
|
# Enable various levels of compiler warning checks. These may be
|
||||||
# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no.
|
# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no.
|
||||||
|
|
||||||
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html
|
# for 4.2.1 GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html
|
||||||
|
# for current GCC: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
|
||||||
|
# for clang: https://clang.llvm.org/docs/DiagnosticsReference.html
|
||||||
|
|
||||||
.include <bsd.compiler.mk>
|
.include <bsd.compiler.mk>
|
||||||
|
|
||||||
# the default is gnu99 for now
|
# the default is gnu99 for now
|
||||||
CSTD?= gnu99
|
CSTD?= gnu99
|
||||||
|
|
||||||
.if ${CSTD} == "k&r"
|
.if ${CSTD} == "c89" || ${CSTD} == "c90"
|
||||||
CFLAGS+= -traditional
|
|
||||||
.elif ${CSTD} == "c89" || ${CSTD} == "c90"
|
|
||||||
CFLAGS+= -std=iso9899:1990
|
CFLAGS+= -std=iso9899:1990
|
||||||
.elif ${CSTD} == "c94" || ${CSTD} == "c95"
|
.elif ${CSTD} == "c94" || ${CSTD} == "c95"
|
||||||
CFLAGS+= -std=iso9899:199409
|
CFLAGS+= -std=iso9899:199409
|
||||||
@ -47,7 +47,6 @@ CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\
|
|||||||
CWARNFLAGS+= -Wcast-align
|
CWARNFLAGS+= -Wcast-align
|
||||||
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE}
|
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE}
|
||||||
.endif # WARNS >= 4
|
.endif # WARNS >= 4
|
||||||
# BDECFLAGS
|
|
||||||
.if ${WARNS} >= 6
|
.if ${WARNS} >= 6
|
||||||
CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\
|
CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\
|
||||||
-Wold-style-definition
|
-Wold-style-definition
|
||||||
|
Loading…
Reference in New Issue
Block a user