mdbx: fix minor MSVC warnings.

Change-Id: I9a2c774f6020bbe5c77e423a1f54110b12bdcb41
This commit is contained in:
Leonid Yuriev 2021-05-02 16:04:11 +03:00
parent 732d3cd2d4
commit df387ad943

View File

@ -14628,7 +14628,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
} }
if (mdbx_audit_enabled()) { if (mdbx_audit_enabled()) {
int err = mdbx_cursor_check(mc, 0); err = mdbx_cursor_check(mc, 0);
if (unlikely(err != MDBX_SUCCESS)) if (unlikely(err != MDBX_SUCCESS))
return err; return err;
} }
@ -14637,7 +14637,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
more:; more:;
if (mdbx_audit_enabled()) { if (mdbx_audit_enabled()) {
int err = mdbx_cursor_check(mc, 0); err = mdbx_cursor_check(mc, 0);
if (unlikely(err != MDBX_SUCCESS)) if (unlikely(err != MDBX_SUCCESS))
return err; return err;
} }
@ -14701,7 +14701,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
memcpy(page_data(pgr.page), data->iov_base, data->iov_len); memcpy(page_data(pgr.page), data->iov_base, data->iov_len);
if (mdbx_audit_enabled()) { if (mdbx_audit_enabled()) {
int err = mdbx_cursor_check(mc, 0); err = mdbx_cursor_check(mc, 0);
if (unlikely(err != MDBX_SUCCESS)) if (unlikely(err != MDBX_SUCCESS))
return err; return err;
} }
@ -14902,7 +14902,7 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
} }
if (mdbx_audit_enabled()) { if (mdbx_audit_enabled()) {
int err = mdbx_cursor_check(mc, 0); err = mdbx_cursor_check(mc, 0);
if (unlikely(err != MDBX_SUCCESS)) if (unlikely(err != MDBX_SUCCESS))
return err; return err;
} }