From 70d9efdce488be85aeefa887c790ea40cac302a6 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: Tue, 17 May 2022 13:36:38 +0300 Subject: [PATCH] mdbx: fix minor CLANG 14/15 warnings. --- mdbx.h | 2 +- src/lck-posix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mdbx.h b/mdbx.h index 414d6444..650f7f28 100644 --- a/mdbx.h +++ b/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() diff --git a/src/lck-posix.c b/src/lck-posix.c index 5753fdf1..a86febd5 100644 --- a/src/lck-posix.c +++ b/src/lck-posix.c @@ -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__)