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. --
