mdbx: minor cosmetics.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-03-31 00:31:49 +03:00
parent 688d4495c5
commit cabead30b5
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ Fixes:
Minors:
- Resolve minor MSVC warnings: avoid `/INCREMENTAL[:YES]` with '/LTCG', `/W4` with `/W3`, the `C5105` warning.
- Resolve minor MSVC warnings: avoid `/INCREMENTAL[:YES]` with `/LTCG`, `/W4` with `/W3`, the `C5105` warning.
- Switched to using `MDBX_EPERM` instead of `MDBX_RESULT_TRUE' to indicate that the geometry cannot be updated.
- Added `NULL` checking during memory allocation inside `mdbx_chk`.
- Resolved all warnings from MinGW while used without CMake.

2
mdbx.h
View File

@ -465,7 +465,7 @@ typedef mode_t mdbx_mode_t;
#else
#define MDBX_PRINTF_ARGS(format_index, first_arg) \
__attribute__((__format__(__printf__, format_index, first_arg)))
#endif /* __MINGW_PRINTF_FORMAT */
#endif /* MinGW */
#else
#define MDBX_PRINTF_ARGS(format_index, first_arg)
#endif