git: sys/conf/kern.pre.mk: Move ${WERROR} into CFLAGS

Aaron LI aly at crater.dragonflybsd.org
Fri Nov 20 06:09:37 PST 2026


commit 073055e39274b424df062c90f90fdafcef0bfebc
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Nov 6 13:10:32 2026 +0800

    sys/conf/kern.pre.mk: Move ${WERROR} into CFLAGS
    
    Commit 40ec0564adaa677a0dab5299bdd491a2245e94a0 added -Werror to the
    kernel build by adjusting config(8) to add -Werror to individual build
    rules, so every source in the "files" file that uses a custom
    "compile-with" rule needs a manual ${WERROR} addition.
    
    This commit makes ${WERROR} the default by moving it to CFLAGS, and
    adjust config(8) to append "-Wno-error" to the build rules if the
    "nowerror" keyword is specified for a source.  As a result, all the
    ${WERROR} in the "files" files and in the explicit rules in makefiles
    are removed.

Summary of changes:
 sys/conf/files                    | 686 +++++++++++++++++++-------------------
 sys/conf/kern.post.mk             |  13 +-
 sys/conf/kern.pre.mk              |   2 +-
 sys/platform/vkernel64/conf/files |   2 +-
 usr.sbin/config/mkmakefile.c      |   2 +-
 5 files changed, 349 insertions(+), 356 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/073055e39274b424df062c90f90fdafcef0bfebc


-- 
DragonFly BSD source repository


More information about the Commits mailing list