commit | 658cbda90694657dfce74c32266d3a26db2751ba | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Wed Mar 09 18:10:00 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Wed Mar 09 18:10:00 2016 +0800 |
tree | 5edfbf8f3b79d2d99ef277daa27ff155bc747a5d | |
parent | 1a0e03b4385e3d1efa8760c8c69c781cbdcb7ddb [diff] [blame] |
Add BUILD_ASSERT Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/console-server.h b/console-server.h index c084321..ec77102 100644 --- a/console-server.h +++ b/console-server.h
@@ -44,3 +44,7 @@ #define container_of(ptr, type, member) \ ((type *)((void *)((ptr) - offsetof(type, member)))) +#define BUILD_ASSERT(c) \ + do { \ + char __c[(c)?1:-1] __attribute__((unused)); \ + } while (0)