summaryrefslogtreecommitdiff
path: root/src/sna/compiler.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-18 23:41:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-18 23:47:10 +0000
commit70042400fd95f613b9547d0a72d6288abcc2357d (patch)
tree57cb7b603bbf3bc71eb0f7c8b05f67925686e8a4 /src/sna/compiler.h
parentf938cd15990d1a851b9d92414545dda37f00c5db (diff)
sna/gen7: minor tidy of redundant defines
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/compiler.h')
-rw-r--r--src/sna/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index 2c8b43da..ad1313b6 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -48,4 +48,6 @@
#define VG_CLEAR(s) VG(memset(&s, 0, sizeof(s)))
+#define COMPILE_TIME_ASSERT(E) ((void)sizeof(char[1 - 2*!(E)]))
+
#endif /* _SNA_COMPILER_H_ */