Q:

How to avoid a stop on warnings for a custom FreeBSD kernel compile?

I am trying to compile my FreeBSD custom kernel, but I get warnings: for example about the initialization of certain variables. In normal circumstances I think such warnings shouldn't stop the compile process, but in FreeBSD they do! 
How can I change the settings so the warnings don't stop the compiling of the FreeBSD kernel?

A:

Quoting from Building FreeBSD :
As of r233419, head should build without -Werror bailing out the build, e.g. there should be no unexpected warnings. If you are attempting to build something earlier, or encounter -Werror bailouts anyway, add the following to /etc/make.conf or /etc/src.conf, as appropriate:
# This setting to build world without -Werror:
NO_WERROR=
# This setting to build kernel without -Werror:
WERROR=

