]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
build: provide a default WARNS for all in-tree builds
authorkevans <kevans@FreeBSD.org>
Fri, 18 Sep 2020 17:17:46 +0000 (17:17 +0000)
committerkevans <kevans@FreeBSD.org>
Fri, 18 Sep 2020 17:17:46 +0000 (17:17 +0000)
commit10826e2c75b9015b7c16f9c8b4d1ee6f0a98d16b
treec81780275dd6e888c4f23a7ee44cd37f687bc5f8
parentf948cb3c8832d57681375e3b92ae132f23f2b781
build: provide a default WARNS for all in-tree builds

The current default is provided in various Makefile.inc in some top-level
directories and covers a good portion of the tree, but doesn't cover parts
of the build a little deeper (e.g. libcasper).

Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if that
variable is defined. This lets us relatively cleanly provide a default WARNS
no matter where you're building in the src tree without breaking things
outside of the tree.

Crunchgen has been updated as a bootstrap tool to work on this change
because it needs r365605 at a minimum to succeed. The cleanup necessary to
successfully walk over this change on WITHOUT_CLEAN builds has been added.

There is a supplemental project to this to list all of the warnings that are
encountered when the environment has WARNS=6 NO_WERROR=yes:
https://warns.kevans.dev -- this project will hopefully eventually go away
in favor of CI doing a much better job than it.

Reviewed by: emaste, brooks, ngie (all earlier version)
Reviewed by: emaste, arichardson (depend-cleanup.sh change)
Differential Revision: https://reviews.freebsd.org/D26455
36 files changed:
Makefile.inc1
bin/Makefile.inc
gnu/lib/libregex/Makefile
gnu/usr.bin/diff3/Makefile
gnu/usr.bin/gdb/Makefile.inc
gnu/usr.bin/grep/Makefile
lib/Makefile.inc
lib/clang/Makefile.inc
lib/libarchive/tests/Makefile
lib/libc/tests/regex/Makefile.inc
lib/libcasper/services/cap_dns/tests/Makefile
lib/libcasper/services/cap_grp/tests/Makefile
lib/libcasper/services/cap_pwd/tests/Makefile
lib/libcasper/services/cap_sysctl/tests/Makefile
lib/libthr/tests/Makefile
lib/libthr/tests/dlopen/Makefile
lib/libthr/tests/dlopen/dso/Makefile
lib/libxo/tests/Makefile
lib/ofed/Makefile.inc
rescue/librescue/Makefile
sbin/Makefile.inc
secure/lib/libcrypto/engines/Makefile.inc
share/mk/bsd.sys.mk
share/mk/src.sys.mk
tests/sys/cddl/zfs/bin/Makefile
tests/sys/cddl/zfs/tests/Makefile.inc [new file with mode: 0644]
tests/sys/geom/class/eli/Makefile
tests/sys/net/routing/Makefile
tools/build/depend-cleanup.sh
usr.bin/Makefile.inc
usr.bin/ofed/infiniband-diags/Makefile.inc
usr.bin/ofed/libibverbs/Makefile.inc
usr.bin/ofed/librdmacm/Makefile.inc
usr.bin/tar/tests/Makefile
usr.sbin/Makefile.inc
usr.sbin/wpa/Makefile.inc