mdbx: устранение ложного предупреждения GCC при сборке для SH4.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2023-02-13 16:00:03 +03:00
parent 8fba5ac8d8
commit b8092dd0db

View File

@ -1674,7 +1674,7 @@ __cold static int uniq_check(const osal_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(osal_filesize(pending->fd, &length) == MDBX_SUCCESS &&
length == 0)) {
/* LY: skip checking since LCK-file is empty, i.e. just created. */