mdbx++: avoid clang++ minor/extra warnings.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-04-21 21:53:46 +03:00
parent e00f827de7
commit bdf5fb7a72

View File

@ -4086,8 +4086,8 @@ static MDBX_CXX17_CONSTEXPR size_t strlen(const char *c_str) noexcept {
#endif #endif
} }
static MDBX_CXX20_CONSTEXPR void *memcpy(void *dest, const void *src, MDBX_MAYBE_UNUSED static MDBX_CXX20_CONSTEXPR void *
size_t bytes) noexcept { memcpy(void *dest, const void *src, size_t bytes) noexcept {
#if defined(__cpp_lib_is_constant_evaluated) && \ #if defined(__cpp_lib_is_constant_evaluated) && \
__cpp_lib_is_constant_evaluated >= 201811L __cpp_lib_is_constant_evaluated >= 201811L
if (::std::is_constant_evaluated()) { 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)); return check_length(check_length(headroom) + check_length(payload));
} }
static MDBX_CXX14_CONSTEXPR size_t check_length(size_t headroom, size_t payload, MDBX_MAYBE_UNUSED static MDBX_CXX14_CONSTEXPR size_t
size_t tailroom) { check_length(size_t headroom, size_t payload, size_t tailroom) {
return check_length(check_length(headroom, payload) + check_length(tailroom)); return check_length(check_length(headroom, payload) + check_length(tailroom));
} }