Date: Wed, 23 May 2018 07:54:59 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334080 - head/share/mk Message-ID: <201805230754.w4N7sxhg073517@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805230754.w4N7sxhg073517>