]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: temporary workaround for LabN CI
authorDavid Lamparter <equinox@diac24.net>
Tue, 2 Mar 2021 18:40:07 +0000 (19:40 +0100)
committerDavid Lamparter <equinox@diac24.net>
Wed, 17 Mar 2021 05:24:03 +0000 (06:24 +0100)
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>
lib/compiler.h

index ab95aa09c0b1f36c80b9dd332f42aca9c1bd19a7..b7a142bdee5ac5aa3129262929d31d8f0239993d 100644 (file)
@@ -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) ...