mdbx: добавлена несколько MDBX_MAYBE_UNUSED для ликвидации предупреждений.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-10-09 20:55:53 +03:00
parent 92d203a12c
commit 138a83c2be
2 changed files with 12 additions and 7 deletions

View File

@@ -552,8 +552,10 @@ static const DWORD WC_ERR_INVALID_CHARS =
: 0;
#endif /* WC_ERR_INVALID_CHARS */
MDBX_INTERNAL_FUNC size_t osal_mb2w(wchar_t *dst, size_t dst_n, const char *src,
size_t src_n) {
MDBX_MAYBE_UNUSED MDBX_INTERNAL_FUNC size_t osal_mb2w(wchar_t *dst,
size_t dst_n,
const char *src,
size_t src_n) {
return MultiByteToWideChar(CP_THREAD_ACP, MB_ERR_INVALID_CHARS, src,
(int)src_n, dst, (int)dst_n);
}