bsd.sys.mk: add -Wmain to WARNS=1

Even in very low "WARNS" conditions, 'main' ought to be reasonable.
This commit is contained in:
Eitan Adler 2018-05-23 08:35:55 +00:00
parent 5d1ee539dd
commit 9a6efe4a0f

View File

@ -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}