Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2018 08:35:55 +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: r334081 - head/share/mk
Message-ID:  <201805230835.w4N8ZtG8093846@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed May 23 08:35:55 2018
New Revision: 334081
URL: https://svnweb.freebsd.org/changeset/base/334081

Log:
  bsd.sys.mk: add -Wmain to WARNS=1
  
  Even in very low "WARNS" conditions, 'main' ought to be reasonable.

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

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk	Wed May 23 07:54:58 2018	(r334080)
+++ head/share/mk/bsd.sys.mk	Wed May 23 08:35:55 2018	(r334081)
@@ -28,7 +28,7 @@ CFLAGS+=	-std=${CSTD}
 #CFLAGS+=	-pedantic
 .if defined(WARNS)
 .if ${WARNS} >= 1
-CWARNFLAGS+=	-Wsystem-headers
+CWARNFLAGS+=	-Wsystem-headers -Wmain
 .if !defined(NO_WERROR) && !defined(NO_WERROR.${COMPILER_TYPE})
 CWARNFLAGS+=	-Werror
 .endif # !NO_WERROR && !NO_WERROR.${COMPILER_TYPE}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805230835.w4N8ZtG8093846>