DragonFly BSD
DragonFly commits List (threaded) for 2009-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Add -Werror to the kernel build.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Dec 2009 06:52:54 -0800 (PST)

commit 40ec0564adaa677a0dab5299bdd491a2245e94a0
Author: Sascha Wildner <saw@online.de>
Date:   Tue Dec 15 15:52:07 2009 +0100

    Add -Werror to the kernel build.
    
    * Add a new 'nowerror' keyword to config(8) for parsing the 'files' files.
      When specified, it will prevent the file from being compiled with
      -Werror.
    
      Note that files that have their own compile-with rules need "${WERROR}"
      added to get -Werror.
    
    * Adjust all 'files' files accordingly: Set nowerror where we still warn
      (i386 or x86_64) and add "${WERROR}" to compile-with rules where it
      applies.
    
    * Remove explicit -Werror-implicit-function-declaration setting as it is
      now useless (-Wimplicit-function-declaration is already part of -Wall).
    
    You will need an updated config(8) (i.e., one that understands 'nowerror')
    for this to work so don't forget to quick/buildworld before recompiling
    the kernel. nativekernel users will have to update their host config(8).
    
    NO_WERROR in /etc/make.conf applies here as well and turns off the setting
    of -Werror for the kernel, too.
    
    In-discussion-with: corecode, aggelos, and others

Summary of changes:
 sys/conf/bsd.kern.mk            |    2 -
 sys/conf/files                  |   97 +++++++++++++++++++--------------------
 sys/conf/kern.post.mk           |    3 +-
 sys/conf/kern.pre.mk            |    4 ++
 sys/platform/pc32/conf/files    |   27 +++++------
 sys/platform/pc64/conf/files    |    6 +-
 sys/platform/vkernel/conf/files |    4 +-
 usr.sbin/config/config.h        |    2 +-
 usr.sbin/config/mkmakefile.c    |   15 ++++--
 9 files changed, 83 insertions(+), 77 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/40ec0564adaa677a0dab5299bdd491a2245e94a0


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]