mdbx: fix unused warning for case MDBX_DISABLE_VALIDATION.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-07-23 18:56:12 +03:00
parent c4dd83fbdf
commit 289636834c

View File

@ -14181,7 +14181,9 @@ __hot static __always_inline pgr_t page_get_inline(const uint16_t ILL,
} else {
assert(false);
}
#endif /* !MDBX_DISABLE_VALIDATION */
#else
(void)ILL;
#endif /* MDBX_DISABLE_VALIDATION */
if (unlikely(mc->mc_checking & CC_PAGECHECK) &&
unlikely(MDBX_SUCCESS != (r.err = mdbx_page_check(mc, r.page))))