diff --git a/src/core.c b/src/core.c index c0677944..4af316c0 100644 --- a/src/core.c +++ b/src/core.c @@ -3256,7 +3256,7 @@ __cold const char *mdbx_liberr2str(int errnum) { " or environment is already used while opening with MDBX_EXCLUSIVE flag", }; - if (errnum >= MDBX_KEYEXIST && errnum <= MDBX_LAST_LMDB_ERRCODE) { + if (errnum >= MDBX_KEYEXIST && errnum <= MDBX_BUSY) { int i = errnum - MDBX_KEYEXIST; return tbl[i]; } @@ -19391,7 +19391,11 @@ __dll_export #endif /* MDBX_BUILD_FLAGS */ #if !(defined(MDBX_BUILD_FLAGS_CONFIG) || defined(MDBX_BUILD_FLAGS)) "undefined (please use correct build script)" +#ifdef _MSC_VER +#pragma message("warning: Build flags undefined. Please use correct build script") +#else #warning "Build flags undefined. Please use correct build script" +#endif // _MSC_VER #endif }; diff --git a/src/lck-posix.c b/src/lck-posix.c index 3176cec1..e0d9a801 100644 --- a/src/lck-posix.c +++ b/src/lck-posix.c @@ -733,7 +733,11 @@ static int __cold mdbx_ipclock_failed(MDBX_env *env, mdbx_ipclock_t *ipc, #elif MDBX_LOCKING == MDBX_LOCKING_POSIX1988 (void)ipc; #elif MDBX_LOCKING == MDBX_LOCKING_FUTEX +#ifdef _MSC_VER +#pragma message("warning: TODO") +#else #warning "TODO" +#endif (void)ipc; #else #error "FIXME"