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

看板DFBSD_commit作者時間16年前 (2009/12/16 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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!
文章代碼(AID): #1BABtr4L (DFBSD_commit)