From bdf5fb7a72be218e4b6bb4ccdeacb20c8f7ff1a9 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, 21 Apr 2022 21:53:46 +0300 Subject: [PATCH] mdbx++: avoid clang++ minor/extra warnings. --- mdbx.h++ | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index abf214b8..11d209e6 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -4086,8 +4086,8 @@ static MDBX_CXX17_CONSTEXPR size_t strlen(const char *c_str) noexcept { #endif } -static MDBX_CXX20_CONSTEXPR void *memcpy(void *dest, const void *src, - size_t bytes) noexcept { +MDBX_MAYBE_UNUSED static MDBX_CXX20_CONSTEXPR void * +memcpy(void *dest, const void *src, size_t bytes) noexcept { #if defined(__cpp_lib_is_constant_evaluated) && \ __cpp_lib_is_constant_evaluated >= 201811L if (::std::is_constant_evaluated()) { @@ -4127,8 +4127,8 @@ static MDBX_CXX14_CONSTEXPR size_t check_length(size_t headroom, return check_length(check_length(headroom) + check_length(payload)); } -static MDBX_CXX14_CONSTEXPR size_t check_length(size_t headroom, size_t payload, - size_t tailroom) { +MDBX_MAYBE_UNUSED static MDBX_CXX14_CONSTEXPR size_t +check_length(size_t headroom, size_t payload, size_t tailroom) { return check_length(check_length(headroom, payload) + check_length(tailroom)); }