Cc: Ingo Molnar <mingo@...>, David S. Miller <davem@...>, Ivo van Doorn <IvDoorn@...>, John W. Linville <linville@...>, Alexey Dobriyan <adobriyan@...>, Andrew Morton <akpm@...>, Theodore Tso <tytso@...>, Linus Torvalds <torvalds@...>, Jan Beulich <jbeulich@...>, linux-kernel <linux-kernel@...>
On Wednesday 03 September 2008 01:57:31 Boaz Harrosh wrote:
Why did you hate the void cast again? Simplest should
be "(void)BUILD_BUG_ON_ZERO(e)". But if not, it seems to me that it's
cleaner to do:
#define BUILD_BUG_ON(e) \
do { } while(BUILD_BUG_ON_ZERO(e))
No chance of the compiler emitting unused vars.
Cheers,
Rusty.
--