summaryrefslogtreecommitdiff
path: root/lib/compiler.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-03-02 19:40:07 +0100
committerDavid Lamparter <equinox@diac24.net>2021-03-17 06:24:03 +0100
commit941b5172ea78b578a38114268167b9eea1680dc1 (patch)
tree78dbb759d5c96152375dd35b74653d2fe3f7d268 /lib/compiler.h
parent7abb042e78e0b0d7b7512ef74a6dde6e48d610fc (diff)
lib: temporary workaround for LabN CI
Accept macros without ; for LabN CI *only*. This is a bit hairy since we can't generate warnings for this, so it's very limited in both scope and duration. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/compiler.h')
-rw-r--r--lib/compiler.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/compiler.h b/lib/compiler.h
index ab95aa09c0..b7a142bdee 100644
--- a/lib/compiler.h
+++ b/lib/compiler.h
@@ -140,6 +140,21 @@ extern "C" {
#define MACRO_REQUIRE_SEMICOLON() \
_Static_assert(1, "please add a semicolon after this macro")
+#if CONFDATE < 20210601
+#ifdef ENABLE_BGP_VNC
+/* temporarily disabled for transition for LabN CI
+ * NB: it's not possible to generate a deprecation warning for this, hence
+ * the shortened transition period (since otherwise new uses of the old syntax
+ * may creep in without errors)
+ */
+#undef MACRO_REQUIRE_SEMICOLON
+#define MACRO_REQUIRE_SEMICOLON() \
+ /* nothing */
+#endif /* ENABLE_BGP_VNC */
+#else /* CONFDATE >= 20210601 */
+CPP_NOTICE("time to remove this CONFDATE block")
+#endif
+
/* variadic macros, use like:
* #define V_0() ...
* #define V_1(x) ...