From ad0b374eb5e439314e68e382df560548e5b2c06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Thu, 28 Nov 2024 00:05:36 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20`MDBX=5FMAYBE=5FUNUSED`=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20`log=5Fif=5Ferror()`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/logging_and_debug.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logging_and_debug.h b/src/logging_and_debug.h index b3cef271..4feac0b8 100644 --- a/src/logging_and_debug.h +++ b/src/logging_and_debug.h @@ -161,7 +161,8 @@ MDBX_INTERNAL const char *pagetype_caption(const uint8_t type, MDBX_INTERNAL int log_error(const int err, const char *func, unsigned line); -static inline int log_if_error(const int err, const char *func, unsigned line) { +MDBX_MAYBE_UNUSED static inline int +log_if_error(const int err, const char *func, unsigned line) { if (likely(err == MDBX_SUCCESS)) return err; int rc = log_error(err, func, line);