The #endif location was wrong.
#ifdef DISABLE_ASSERTS
# define i_assert(expr)
#else
-
-#define i_assert(expr) STMT_START{ \
+# define i_assert(expr) STMT_START{ \
if (unlikely(!(expr))) \
i_panic("file %s: line %d (%s): assertion failed: (%s)", \
__FILE__, \
__LINE__, \
__func__, \
#expr); }STMT_END
+#endif
/* Convenience macros to test the versions of dovecot. */
#if defined DOVECOT_VERSION_MAJOR && defined DOVECOT_VERSION_MINOR
(st_a).st_size != (st_b).st_size || \
(st_a).st_ino != (st_b).st_ino)
-#endif
-
#ifdef HAVE_UNDEFINED_SANITIZER
# define ATTR_NO_SANITIZE(x) __attribute__((no_sanitize((x))))
#else