mdbx: добавление MDBX_MAYBE_UNUSED для log_if_error().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-11-28 00:05:36 +03:00
parent c716531bd4
commit ad0b374eb5

View File

@ -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); 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)) if (likely(err == MDBX_SUCCESS))
return err; return err;
int rc = log_error(err, func, line); int rc = log_error(err, func, line);