github.com/torquem-ch/mdbx-go/mdbx
mdbx.c:19127:5: error: conflicting types for ‘mdbx_cursor_put’ due to enum/integer mismatch; have ‘int(MDBX_cursor *, const MDBX_val *, MDBX_val *, unsigned int)’ {aka ‘int(MDBX_cursor *, const struct iovec *, struct iovec *, unsigned int)’} [-Werror=enum-int-mismatch]
19127 | int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
| ^~~~~~~~~~~~~~~
In file included from mdbx.c:132:
mdbx.h:4624:17: note: previous declaration of ‘mdbx_cursor_put’ with type ‘int(MDBX_cursor *, const MDBX_val *, MDBX_val *, MDBX_put_flags_t)’ {aka ‘int(MDBX_cursor *, const struct iovec *, struct iovec *, MDBX_put_flags_t)’}
4624 | LIBMDBX_API int mdbx_cursor_put(MDBX_cursor *cursor, const MDBX_val *key,
| ^~~~~~~~~~~~~~~
mdbx.c:23042:5: error: conflicting types for ‘mdbx_put’ due to enum/integer mismatch; have ‘int(MDBX_txn *, MDBX_dbi, const MDBX_val *, MDBX_val *, unsigned int)’ {aka ‘int(MDBX_txn *, unsigned int, const struct iovec *, struct iovec *, unsigned int)’} [-Werror=enum-int-mismatch]
23042 | int mdbx_put(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key, MDBX_val *data,
| ^~~~~~~~
mdbx.h:4223:17: note: previous declaration of ‘mdbx_put’ with type ‘int(MDBX_txn *, MDBX_dbi, const MDBX_val *, MDBX_val *, MDBX_put_flags_t)’ {aka ‘int(MDBX_txn *, unsigned int, const struct iovec *, struct iovec *, MDBX_put_flags_t)’}
4223 | LIBMDBX_API int mdbx_put(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key,
| ^~~~~~~~
mdbx.c:23727:12: error: conflicting types for ‘mdbx_env_copy2fd’ due to enum/integer mismatch; have ‘int(MDBX_env *, mdbx_filehandle_t, unsigned int)’ {aka ‘int(MDBX_env *, int, unsigned int)’} [-Werror=enum-int-mismatch]
23727 | __cold int mdbx_env_copy2fd(MDBX_env *env, mdbx_filehandle_t fd,
| ^~~~~~~~~~~~~~~~
mdbx.h:2378:17: note: previous declaration of ‘mdbx_env_copy2fd’ with type ‘int(MDBX_env *, mdbx_filehandle_t, MDBX_copy_flags_t)’ {aka ‘int(MDBX_env *, int, MDBX_copy_flags_t)’}
2378 | LIBMDBX_API int mdbx_env_copy2fd(MDBX_env env, mdbx_filehandle_t fd,
| ^~~~~~~~~~~~~~~~
mdbx.c:25117:12: error: conflicting types for ‘mdbx_setup_debug’ due to enum/integer mismatch; have ‘int(int, int, void ()(MDBX_log_level_t, const char *, int, const char *, __va_list_tag *))’ [-Werror=enum-int-mismatch]
25117 | __cold int mdbx_setup_debug(int loglevel, int flags, MDBX_debug_func logger) {
| ^~~~~~~~~~~~~~~~
mdbx.h:973:17: note: previous declaration of ‘mdbx_setup_debug’ with type ‘int(MDBX_log_level_t, MDBX_debug_flags_t, void ()(MDBX_log_level_t, const char *, int, const char *, __va_list_tag ))’
973 | LIBMDBX_API int mdbx_setup_debug(MDBX_log_level_t log_level,
| ^~~~~~~~~~~~~~~~
mdbx.c:26605:23: error: conflicting types for ‘mdbx_get_keycmp’ due to enum/integer mismatch; have ‘int ((unsigned int))(const MDBX_val *, const MDBX_val )’ {aka ‘int ((unsigned int))(const struct iovec *, const struct iovec *)’} [-Werror=enum-int-mismatch]
26605 | __cold MDBX_cmp_func mdbx_get_keycmp(unsigned flags) {
| ^~~~~~~~~~~~~~~
mdbx.h:4907:1: note: previous declaration of ‘mdbx_get_keycmp’ with type ‘int ((MDBX_db_flags_t))(const MDBX_val *, const MDBX_val )’ {aka ‘int ((MDBX_db_flags_t))(const struct iovec *, const struct iovec )’}
4907 | mdbx_get_keycmp(MDBX_db_flags_t flags);
| ^~~~~~~~~~~~~~~
mdbx.c:26609:23: error: conflicting types for ‘mdbx_get_datacmp’ due to enum/integer mismatch; have ‘int ((unsigned int))(const MDBX_val *, const MDBX_val )’ {aka ‘int ((unsigned int))(const struct iovec *, const struct iovec *)’} [-Werror=enum-int-mismatch]
26609 | __cold MDBX_cmp_func mdbx_get_datacmp(unsigned flags) {
| ^~~~~~~~~~~~~~~~
mdbx.h:4932:1: note: previous declaration of ‘mdbx_get_datacmp’ with type ‘int ((MDBX_db_flags_t))(const MDBX_val *, const MDBX_val )’ {aka ‘int ((MDBX_db_flags_t))(const struct iovec *, const struct iovec *)’}
4932 | mdbx_get_datacmp(MDBX_db_flags_t flags);
| ^~~~~~~~~~~~~~~~