[tor-commits] [tor/master] ctassert.h: fix CTASSERT_DECL so coccinelle can parse it.

teor at torproject.org teor at torproject.org
Thu Oct 24 00:01:21 UTC 2019


commit 4346e5569ef9957688aa5b50eab58e7bbe145bb1
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 9 13:12:28 2019 -0400

    ctassert.h: fix CTASSERT_DECL so coccinelle can parse it.
---
 src/lib/cc/ctassert.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/cc/ctassert.h b/src/lib/cc/ctassert.h
index bedf0b83a..d9d3aa40b 100644
--- a/src/lib/cc/ctassert.h
+++ b/src/lib/cc/ctassert.h
@@ -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 */
 





More information about the tor-commits mailing list