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

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


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 16 Dec 2009 10:52:27 +0000

Sascha Wildner wrote:
commit f64b567cf96e78e43e82bdb4309c004a9c30bb50
Author: Sascha Wildner <saw@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!




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