git: Add -Werror to the kernel build.
Sascha Wildner
saw at online.de
Tue Dec 15 16:31:04 PST 2009
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
More information about the Submit
mailing list