From 289636834cca925f9c669a94f2f950a2569fb49e 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: Sat, 23 Jul 2022 18:56:12 +0300 Subject: [PATCH] mdbx: fix `unused` warning for case `MDBX_DISABLE_VALIDATION`. --- src/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 28c6271c..464f535d 100644 --- a/src/core.c +++ b/src/core.c @@ -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))))