From 4a3b2cbfbc070da4bc8b13456d6a0bfd81002dee Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 9 Jul 2021 16:21:27 +0200 Subject: fix: warning from clang-tidy --- util.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index eb250ae..614c4b0 100644 --- a/util.h +++ b/util.h @@ -1,9 +1,9 @@ #ifndef ITS1_UTIL_H_INCLUDED #define ITS1_UTIL_H_INCLUDED +#include #include #include -#include #ifndef NDEBUG static void @@ -19,14 +19,13 @@ error(const char *msg, ...) exit(EXIT_FAILURE); } -#define ERROR(msg) error(msg " in \"%s()\" (%s:%d)", __func__, __FILE__, __LINE__) +# define ERROR(msg) error(msg " in \"%s()\" (%s:%d)", __func__, __FILE__, __LINE__) #else -#define ERROR(msg) /**/ +# define ERROR(msg) /**/ #endif #ifndef NELEM -#define NELEM(x) (sizeof(x) / sizeof(x[0])) +# define NELEM(x) (sizeof(x) / sizeof(x[0])) /* NOLINT */ #endif #endif - -- cgit v1.3