mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx++: avoid clang++ minor/extra warnings.
This commit is contained in:
parent
e00f827de7
commit
bdf5fb7a72
8
mdbx.h++
8
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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user