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

Re: git: Add -Werror to the kernel build.


From: Sascha Wildner <saw@xxxxxxxxx>
Date: Wed, 16 Dec 2009 01:31:04 +0100

Am 16.12.2009 00:28, schrieb Aggelos Economopoulos:
I don't think that's the proper way to deal with variables that are only
used in debug statements.

We should add something like this:

#ifndef INVARIANTS
#define __debug_var __attribute__((unused))
#else
#define __debug_var
#endif

and then use

int a __debug_var;

for such variables.

That looks like a sound idea. I'm on it (testing kernel builds without INVARIANTS at the moment).


Sascha

--
http://yoyodyne.ath.cx



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