diff options
author | Andi Kleen <[email protected]> | 2005-09-13 01:25:13 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2005-09-13 08:22:28 -0700 |
commit | 921717a2a1cde78c9b2aa971c16510d63efe7320 (patch) | |
tree | 500ce20507a4c75e1e179492b7d70f2135e1ca94 /net/unix/sysctl_net_unix.c | |
parent | 0f3d2bd54f8fb178f516fc6903366e16e20f7428 (diff) |
[PATCH] Make BUILD_BUG_ON fail at compile time.
Force a compiler error instead of a link error, because they are easier to
track down. Idea stolen from code by Jan Beulich <[email protected]>
If the argument to BUILD_BUG_ON evaluates to non-zero the compiler will do:
t.c:6: error: size of array `type name' is negative
(surprised that gcc doesn't have an extension for this)
Signed-off-by: "Andi Kleen" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions