fix static assert FTBFS with older gcc
authorChristian Grothoff <christian@grothoff.org>
Sat, 11 Apr 2020 18:33:08 +0000 (20:33 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 11 Apr 2020 18:33:08 +0000 (20:33 +0200)
src/include/gnunet_common.h

index 212c78f5475296985c1294a3ad6f8a9643e5ea04..6a4e218232c6fb7eeee97e07503eae305f16d0c5 100644 (file)
@@ -901,7 +901,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
  *
  * @param cond condition to test, 0 implies failure
  */
-#define GNUNET_static_assert(cond) _Static_assert (cond)
+#define GNUNET_static_assert(cond) _Static_assert (cond, "")
 #else
 /**
  * Assertion to be checked (if supported by C compiler) at