]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ctassert.h: fix CTASSERT_DECL so coccinelle can parse it.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 17:12:28 +0000 (13:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/cc/ctassert.h

index bedf0b83a69a5608deda595f498701c98e2d9525..d9d3aa40b07fd6d4d6cbf826a04d1a3f29ed1985 100644 (file)
@@ -46,7 +46,7 @@
 
 #define CTASSERT_EXPN(x, a, b) CTASSERT_DECL(x, a, b)
 #define CTASSERT_DECL(x, a, b) \
-  typedef char tor_ctassert_##a##_##b[(x) ? 1 : -1] ATTR_UNUSED
+  typedef char tor_ctassert_##a##_##b[(x) ? 1 : -1] ATTR_UNUSED; EAT_SEMICOLON
 
 #endif /* __STDC_VERSION__ >= 201112L */