From bf6bbecbd0a58aa74089ae35e14a5d1a2b2e5fee Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 3 Dec 2019 00:44:58 +0300 Subject: [PATCH] mdbx: add __maybe_unused for flush_incoherent_mmap (minor). Change-Id: If9dea7ccebcb9821bdea68281f8d3f0544e82914 --- src/elements/internals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/elements/internals.h b/src/elements/internals.h index e410907a..66c9f9e7 100644 --- a/src/elements/internals.h +++ b/src/elements/internals.h @@ -1117,8 +1117,8 @@ MDBX_INTERNAL_FUNC void mdbx_assert_fail(const MDBX_env *env, const char *msg, #define mdbx_flush_incoherent_cpu_writeback() mdbx_compiler_barrier() #endif /* MDBX_CPU_WRITEBACK_INCOHERENT */ -static __inline void mdbx_flush_incoherent_mmap(void *addr, size_t nbytes, - const intptr_t pagesize) { +static __maybe_unused __inline void +mdbx_flush_incoherent_mmap(void *addr, size_t nbytes, const intptr_t pagesize) { #if MDBX_MMAP_INCOHERENT_FILE_WRITE char *const begin = (char *)(-pagesize & (intptr_t)addr); char *const end =