bsd.sys.mk: add -Wmain to WARNS=1
Even in very low "WARNS" conditions, 'main' ought to be reasonable.
This commit is contained in:
parent
5d1ee539dd
commit
9a6efe4a0f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user