[tor-commits] [tor/master] Eat redundant semicolons

nickm at torproject.org nickm at torproject.org
Wed Sep 27 02:50:17 UTC 2017


commit 8f8a4c0ced456661c3c5f20dfc9c14157ade4e35
Author: Taylor Yu <catalyst at torproject.org>
Date:   Tue Sep 26 13:41:20 2017 -0500

    Eat redundant semicolons
---
 src/or/confparse.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/or/confparse.h b/src/or/confparse.h
index 618fa70f2..6f0b3b325 100644
--- a/src/or/confparse.h
+++ b/src/or/confparse.h
@@ -135,7 +135,9 @@ typedef struct config_var_t {
 #else
 #define CONF_TEST_MEMBERS(tp, conftype, member)
 #define END_OF_CONFIG_VARS { NULL, CONFIG_TYPE_OBSOLETE, 0, NULL }
-#define DUMMY_TYPECHECK_INSTANCE(tp)
+/* Repeatedly declarable incomplete struct to absorb redundant semicolons */
+#define DUMMY_TYPECHECK_INSTANCE(tp)            \
+  struct tor_semicolon_eater
 #endif
 
 /** Type of a callback to validate whether a given configuration is



More information about the tor-commits mailing list