Parcourir la source

Eat redundant semicolons

Taylor Yu il y a 6 ans
Parent
commit
8f8a4c0ced
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/or/confparse.h

+ 3 - 1
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