mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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
|
||||
# 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>
|
||||
|
||||
# the default is gnu99 for now
|
||||
CSTD?= gnu99
|
||||
|
||||
.if ${CSTD} == "k&r"
|
||||
CFLAGS+= -traditional
|
||||
.elif ${CSTD} == "c89" || ${CSTD} == "c90"
|
||||
.if ${CSTD} == "c89" || ${CSTD} == "c90"
|
||||
CFLAGS+= -std=iso9899:1990
|
||||
.elif ${CSTD} == "c94" || ${CSTD} == "c95"
|
||||
CFLAGS+= -std=iso9899:199409
|
||||
|
@ -47,7 +47,6 @@ CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\
|
|||
CWARNFLAGS+= -Wcast-align
|
||||
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE}
|
||||
.endif # WARNS >= 4
|
||||
# BDECFLAGS
|
||||
.if ${WARNS} >= 6
|
||||
CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\
|
||||
-Wold-style-definition
|
||||
|
|
Loading…
Reference in a new issue