From f532e907e9b793f03912b20bb7d485a2b121448a 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: Mon, 13 Feb 2023 16:00:03 +0300 Subject: [PATCH] mdbx: fix false-positive SH4 GCC warning (backport). --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 55ef4dbd..c149edd3 100644 --- a/src/core.c +++ b/src/core.c @@ -1768,7 +1768,7 @@ __cold static int uniq_check(const mdbx_mmap_t *pending, MDBX_env **found) { ? uniq_peek(pending, &scan->me_lck_mmap) : uniq_poke(pending, &scan->me_lck_mmap, &salt); if (err == MDBX_ENODATA) { - uint64_t length; + uint64_t length = 0; if (likely(mdbx_filesize(pending->fd, &length) == MDBX_SUCCESS && length == 0)) { /* LY: skip checking since LCK-file is empty, i.e. just created. */