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

Reply via email to