mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx: fix minor CLANG 14/15 warnings.
This commit is contained in:
parent
d890d3c103
commit
70d9efdce4
2
mdbx.h
2
mdbx.h
@ -1898,7 +1898,7 @@ typedef enum MDBX_error_t MDBX_error_t;
|
||||
* \ingroup c_err
|
||||
* \deprecated Please review your code to use MDBX_UNABLE_EXTEND_MAPSIZE
|
||||
* instead. */
|
||||
MDBX_DEPRECATED static __inline int MDBX_MAP_RESIZED_is_deprecated() {
|
||||
MDBX_DEPRECATED static __inline int MDBX_MAP_RESIZED_is_deprecated(void) {
|
||||
return MDBX_UNABLE_EXTEND_MAPSIZE;
|
||||
}
|
||||
#define MDBX_MAP_RESIZED MDBX_MAP_RESIZED_is_deprecated()
|
||||
|
@ -148,7 +148,7 @@ mdbx_global_destructor(void) {
|
||||
|
||||
#if MDBX_USE_OFDLOCKS
|
||||
static int op_setlk, op_setlkw, op_getlk;
|
||||
__cold static void choice_fcntl() {
|
||||
__cold static void choice_fcntl(void) {
|
||||
assert(!op_setlk && !op_setlkw && !op_getlk);
|
||||
if ((mdbx_runtime_flags & MDBX_DBG_LEGACY_MULTIOPEN) == 0
|
||||
#if defined(__linux__) || defined(__gnu_linux__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user