Author: eadler
Date: Wed May 23 07:54:58 2018
New Revision: 334080
URL: https://svnweb.freebsd.org/changeset/base/334080

Log:
  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

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk    Wed May 23 07:44:50 2018        (r334079)
+++ head/share/mk/bsd.sys.mk    Wed May 23 07:54:58 2018        (r334080)
@@ -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
 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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to