Looks like OpenBSD's compiler is about a decade old. GNU11 is not
supported.
Also fix warning on debug disabled.
rpki_validator_CFLAGS = -Wall
# Feel free to temporarily remove this one if you're not using gcc 7.3.0.
rpki_validator_CFLAGS += $(GCC_WARNS)
-rpki_validator_CFLAGS += -std=gnu11 -O0 -g $(CFLAGS_DEBUG)
+rpki_validator_CFLAGS += -std=gnu99 -O0 -g $(CFLAGS_DEBUG)
rpki_validator_LDFLAGS = $(LDFLAGS_DEBUG)
# I'm tired of scrolling up, but feel free to comment this out.
#include "config.h"
#include "thread_var.h"
+#ifdef DEBUG
#define COLOR_DEBUG "\x1B[36m" /* Cyan */
+#endif
+
#define COLOR_INFO "\x1B[37m" /* Gray */
#define COLOR_WARNING "\x1B[33m" /* Yellow */
#define COLOR_ERROR "\x1B[31m" /* Red */
#else
-#define pr_debug(...)
-#define pr_debug_add(...)
-#define pr_debug_rm(...)
+/*
+ * I want to define these as empty, but then we get compiler warnings on
+ *
+ * ```
+ * else
+ * pr_debug(...);
+ * ```
+ *
+ * Oh well.
+ */
+
+#define pr_debug(...) do {} while (0)
+#define pr_debug_add(...) do {} while (0)
+#define pr_debug_rm(...) do {} while (0)
#endif