git: Fix some warnings that creep up when compiling without INVARIANTS.

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Wed Dec 16 02:55:00 PST 2009


Sascha Wildner wrote:
commit f64b567cf96e78e43e82bdb4309c004a9c30bb50
Author: Sascha Wildner <saw at online.de>
Date:   Wed Dec 16 09:36:59 2009 +0100
    Fix some warnings that creep up when compiling without INVARIANTS.
    
    * Add a __debugvar define to <sys/systm.h> which is empty when INVARIANTS
      is set (default) and __attribute__((unused)) when INVARIANTS is not set.
    
    * Use __debugvar in the declaration of variables which are only used in a
      KASSERT or KKASSERT to avoid 'unused variable' warnings.
cute!





More information about the Commits mailing list