Version
codebase-memory-mcp-0.9.0
Platform
Windows (x64)
Install channel
Built from source
Binary variant
standard
What happened, and what did you expect?
Last days, compiling on windows (mingw, following instructions on README.md) it break.
commit e678b2b compiles
commit d15a74a breaks:
src/foundation/compat_fs.c: In function 'cbm_canonical_path': src/foundation/compat_fs.c:886:61: error: comparison is always false due to limited range of data type [-Werror=type-limits] 886 | if (needed == 0 || needed == MAXDWORD || (size_t)needed > SIZE_MAX / sizeof(wchar_t) - 1) { | ^ cc1.exe: all warnings being treated as errors src/foundation/private_file_lock.c: In function 'private_win_security_init': src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, void **)' {aka 'int (*)(void *, long unsigned int, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:753:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 753 | PRIVATE_RESOLVE_ADVAPI(security, open_process_token, private_open_process_token_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, TOKEN_INFORMATION_CLASS, void *, DWORD, DWORD *)' {aka 'int (*)(void *, TOKEN_INFORMATION_CLASS, void *, long unsigned int, long unsigned int *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:755:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 755 | PRIVATE_RESOLVE_ADVAPI(security, get_token_information, private_get_token_information_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *)' {aka 'long unsigned int (*)(void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:757:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 757 | PRIVATE_RESOLVE_ADVAPI(security, get_length_sid, private_get_length_sid_fn, "GetLengthSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(DWORD, void *, void *)' {aka 'int (*)(long unsigned int, void *, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:758:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 758 | PRIVATE_RESOLVE_ADVAPI(security, copy_sid, private_copy_sid_fn, "CopySid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *)' {aka 'int (*)(void *, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:759:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 759 | PRIVATE_RESOLVE_ADVAPI(security, equal_sid, private_equal_sid_fn, "EqualSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:760:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 760 | PRIVATE_RESOLVE_ADVAPI(security, is_valid_sid, private_is_valid_sid_fn, "IsValidSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:761:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 761 | PRIVATE_RESOLVE_ADVAPI(security, initialize_acl, private_initialize_acl_fn, "InitializeAcl"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD, void *)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:762:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 762 | PRIVATE_RESOLVE_ADVAPI(security, add_access_allowed_ace, private_add_access_allowed_ace_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD)' {aka 'int (*)(void *, long unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:764:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 764 | PRIVATE_RESOLVE_ADVAPI(security, initialize_security_descriptor, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, BOOL, ACL *, BOOL)' {aka 'int (*)(void *, int, ACL *, int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:767:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 767 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_dacl, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *, BOOL)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:769:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 769 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_owner, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, SECURITY_DESCRIPTOR_CONTROL, SECURITY_DESCRIPTOR_CONTROL)' {aka 'int (*)(void *, short unsigned int, short unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:771:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 771 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_control, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, WORD *, DWORD *)' {aka 'int (*)(void *, short unsigned int *, long unsigned int *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:774:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 774 | PRIVATE_RESOLVE_ADVAPI(security, get_security_descriptor_control, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, void *, DWORD, ACL_INFORMATION_CLASS)' {aka 'int (*)(ACL *, void *, long unsigned int, ACL_INFORMATION_CLASS)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:777:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 777 | PRIVATE_RESOLVE_ADVAPI(security, get_acl_information, private_get_acl_information_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, void **)' {aka 'int (*)(ACL *, long unsigned int, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:779:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 779 | PRIVATE_RESOLVE_ADVAPI(security, get_ace, private_get_ace_fn, "GetAce"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void **, void **, ACL **, ACL **, void **)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void **, void **, ACL **, ACL **, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:780:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 780 | PRIVATE_RESOLVE_ADVAPI(security, get_security_info, private_get_security_info_fn, | ^~~~~~~~~~~~~~~~~~~~~~ cc1.exe: all warnings being treated as errors src/daemon/ipc.c: In function 'win_security_init': src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, void **)' {akaint (*)(void *, long unsigned int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3572:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3572 | RESOLVE_ADVAPI_MEMBER(security, open_process_token, open_process_token_fn, "OpenProcessToken"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, BOOL, void **' {aka 'int (*)(void *, long unsigned int, int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3573:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3573 | RESOLVE_ADVAPI_MEMBER(security, open_thread_token, open_thread_token_fn, "OpenThreadToken"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, TOKEN_INFORMATION_CLASS, void *, DWORD, DWORD *)' {aka 'int (*)(void *, TOKEN_INFORMATION_CLASS, void *, long unsigned int, long unsigned int *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3574:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3574 | RESOLVE_ADVAPI_MEMBER(security, get_token_information, get_token_information_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *)' {aka 'long unsigned int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3576:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3576 | RESOLVE_ADVAPI_MEMBER(security, get_length_sid, get_length_sid_fn, "GetLengthSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(DWORD, void *, void *)' {aka int (*)(long unsigned int, void *, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3577:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3577 | RESOLVE_ADVAPI_MEMBER(security, copy_sid, copy_sid_fn, "CopySid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *)' {aka 'int (*)(void *, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3578:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3578 | RESOLVE_ADVAPI_MEMBER(security, equal_sid, equal_sid_fn, "EqualSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3579:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3579 | RESOLVE_ADVAPI_MEMBER(security, is_valid_sid, is_valid_sid_fn, "IsValidSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, WELL_KNOWN_SID_TYPE)' {aka 'int (*)(void *, WELL_KNOWN_SID_TYPE)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3580:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3580 | RESOLVE_ADVAPI_MEMBER(security, is_well_known_sid, is_well_known_sid_fn, "IsWellKnownSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *)' {aka 'int (*)(ACL *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3581:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3581 | RESOLVE_ADVAPI_MEMBER(security, is_valid_acl, is_valid_acl_fn, "IsValidAcl"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3582:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3582 | RESOLVE_ADVAPI_MEMBER(security, initialize_acl, initialize_acl_fn, "InitializeAcl"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD, void *)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3583:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3583 | RESOLVE_ADVAPI_MEMBER(security, add_access_allowed_ace, add_access_allowed_ace_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD)' {aka 'int (*)(void *, long unsigned int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3585:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3585 | RESOLVE_ADVAPI_MEMBER(security, initialize_security_descriptor, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, BOOL, ACL *, BOOL)' {aka 'int (*)(void *, int, ACL *, int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3587:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3587 | RESOLVE_ADVAPI_MEMBER(security, set_security_descriptor_dacl, set_security_descriptor_dacl_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *, BOOL)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3589:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3589 | RESOLVE_ADVAPI_MEMBER(security, set_security_descriptor_owner, set_security_descriptor_owner_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, void *, DWORD, ACL_INFORMATION_CLASS)' {aka 'int (*)(ACL *, void *, long unsigned int, ACL_INFORMATION_CLASS)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3591:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3591 | RESOLVE_ADVAPI_MEMBER(security, get_acl_information, get_acl_information_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, void **)' {aka int (*)(ACL *, long unsigned int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3593:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3593 | RESOLVE_ADVAPI_MEMBER(security, get_ace, get_ace_fn, "GetAce"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void **, void **, ACL **, ACL **, void **)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void **, void **, ACL **, ACL **, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3594:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3594 | RESOLVE_ADVAPI_MEMBER(security, get_security_info, get_security_info_fn, "GetSecurityInfo"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void *, void *, ACL *, ACL *)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void *, void *, ACL *, ACL *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3595:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3595 | RESOLVE_ADVAPI_MEMBER(security, set_security_info, set_security_info_fn, "SetSecurityInfo"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3596:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3596 | RESOLVE_ADVAPI_MEMBER(security, impersonate_named_pipe_client, impersonate_named_pipe_client_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void)' {aka 'int (*)(void)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3598:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3598 | RESOLVE_ADVAPI_MEMBER(security, revert_to_self, revert_to_self_fn, "RevertToSelf"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c: In function 'win_generation_nonce': src/daemon/ipc.c:4622:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'LONG (*)(void *, unsigned char *, ULONG, ULONG)' {aka 'long int (*)(void *, unsigned char *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 4622 | bcrypt ? (bcrypt_gen_random_fn)GetProcAddress(bcrypt, "BCryptGenRandom") : NULL; | ^ src/daemon/ipc.c: In function 'win_pipe_client_is_current_user': src/daemon/ipc.c:5177:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5177 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress(kernel, | ^ src/daemon/ipc.c: In function 'win_pipe_server_is_current_user': src/daemon/ipc.c:5322:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5322 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress(kernel, | ^ src/daemon/ipc.c: In function 'cbm_daemon_ipc_connection_peer_pid': src/daemon/ipc.c:5615:22: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5615 | kernel ? (get_named_pipe_client_process_id_fn)GetProcAddress( | ^ src/daemon/ipc.c:5623:22: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5623 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress( | ^ cc1.exe: all warnings being treated as errors make: *** [Makefile.cbm:817: build/c/codebase-memory-mcp] Error 1
Reproduction
Compile on windows with mingw as per instructions on README.md
Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations
Version
codebase-memory-mcp-0.9.0
Platform
Windows (x64)
Install channel
Built from source
Binary variant
standard
What happened, and what did you expect?
Last days, compiling on windows (mingw, following instructions on README.md) it break.
commit e678b2b compiles
commit d15a74a breaks:
src/foundation/compat_fs.c: In function 'cbm_canonical_path': src/foundation/compat_fs.c:886:61: error: comparison is always false due to limited range of data type [-Werror=type-limits] 886 | if (needed == 0 || needed == MAXDWORD || (size_t)needed > SIZE_MAX / sizeof(wchar_t) - 1) { | ^ cc1.exe: all warnings being treated as errors src/foundation/private_file_lock.c: In function 'private_win_security_init': src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, void **)' {aka 'int (*)(void *, long unsigned int, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:753:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 753 | PRIVATE_RESOLVE_ADVAPI(security, open_process_token, private_open_process_token_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, TOKEN_INFORMATION_CLASS, void *, DWORD, DWORD *)' {aka 'int (*)(void *, TOKEN_INFORMATION_CLASS, void *, long unsigned int, long unsigned int *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:755:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 755 | PRIVATE_RESOLVE_ADVAPI(security, get_token_information, private_get_token_information_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *)' {aka 'long unsigned int (*)(void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:757:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 757 | PRIVATE_RESOLVE_ADVAPI(security, get_length_sid, private_get_length_sid_fn, "GetLengthSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(DWORD, void *, void *)' {aka 'int (*)(long unsigned int, void *, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:758:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 758 | PRIVATE_RESOLVE_ADVAPI(security, copy_sid, private_copy_sid_fn, "CopySid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *)' {aka 'int (*)(void *, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:759:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 759 | PRIVATE_RESOLVE_ADVAPI(security, equal_sid, private_equal_sid_fn, "EqualSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:760:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 760 | PRIVATE_RESOLVE_ADVAPI(security, is_valid_sid, private_is_valid_sid_fn, "IsValidSid"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:761:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 761 | PRIVATE_RESOLVE_ADVAPI(security, initialize_acl, private_initialize_acl_fn, "InitializeAcl"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD, void *)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int, void *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:762:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 762 | PRIVATE_RESOLVE_ADVAPI(security, add_access_allowed_ace, private_add_access_allowed_ace_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD)' {aka 'int (*)(void *, long unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:764:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 764 | PRIVATE_RESOLVE_ADVAPI(security, initialize_security_descriptor, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, BOOL, ACL *, BOOL)' {aka 'int (*)(void *, int, ACL *, int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:767:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 767 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_dacl, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *, BOOL)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:769:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 769 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_owner, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, SECURITY_DESCRIPTOR_CONTROL, SECURITY_DESCRIPTOR_CONTROL)' {aka 'int (*)(void *, short unsigned int, short unsigned int)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:771:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 771 | PRIVATE_RESOLVE_ADVAPI(security, set_security_descriptor_control, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, WORD *, DWORD *)' {aka 'int (*)(void *, short unsigned int *, long unsigned int *)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:774:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 774 | PRIVATE_RESOLVE_ADVAPI(security, get_security_descriptor_control, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, void *, DWORD, ACL_INFORMATION_CLASS)' {aka 'int (*)(ACL *, void *, long unsigned int, ACL_INFORMATION_CLASS)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:777:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 777 | PRIVATE_RESOLVE_ADVAPI(security, get_acl_information, private_get_acl_information_fn, | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, void **)' {aka 'int (*)(ACL *, long unsigned int, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:779:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 779 | PRIVATE_RESOLVE_ADVAPI(security, get_ace, private_get_ace_fn, "GetAce"); | ^~~~~~~~~~~~~~~~~~~~~~ src/foundation/private_file_lock.c:740:29: error: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void **, void **, ACL **, ACL **, void **)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void **, void **, ACL **, ACL **, void **)'} [-Werror=cast-function-type] 740 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/foundation/private_file_lock.c:780:5: note: in expansion of macro 'PRIVATE_RESOLVE_ADVAPI' 780 | PRIVATE_RESOLVE_ADVAPI(security, get_security_info, private_get_security_info_fn, | ^~~~~~~~~~~~~~~~~~~~~~ cc1.exe: all warnings being treated as errors src/daemon/ipc.c: In function 'win_security_init': src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, void **)' {akaint (*)(void *, long unsigned int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3572:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3572 | RESOLVE_ADVAPI_MEMBER(security, open_process_token, open_process_token_fn, "OpenProcessToken"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD, BOOL, void **' {aka 'int (*)(void *, long unsigned int, int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3573:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3573 | RESOLVE_ADVAPI_MEMBER(security, open_thread_token, open_thread_token_fn, "OpenThreadToken"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, TOKEN_INFORMATION_CLASS, void *, DWORD, DWORD *)' {aka 'int (*)(void *, TOKEN_INFORMATION_CLASS, void *, long unsigned int, long unsigned int *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3574:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3574 | RESOLVE_ADVAPI_MEMBER(security, get_token_information, get_token_information_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *)' {aka 'long unsigned int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3576:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3576 | RESOLVE_ADVAPI_MEMBER(security, get_length_sid, get_length_sid_fn, "GetLengthSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(DWORD, void *, void *)' {aka int (*)(long unsigned int, void *, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3577:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3577 | RESOLVE_ADVAPI_MEMBER(security, copy_sid, copy_sid_fn, "CopySid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *)' {aka 'int (*)(void *, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3578:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3578 | RESOLVE_ADVAPI_MEMBER(security, equal_sid, equal_sid_fn, "EqualSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3579:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3579 | RESOLVE_ADVAPI_MEMBER(security, is_valid_sid, is_valid_sid_fn, "IsValidSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, WELL_KNOWN_SID_TYPE)' {aka 'int (*)(void *, WELL_KNOWN_SID_TYPE)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3580:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3580 | RESOLVE_ADVAPI_MEMBER(security, is_well_known_sid, is_well_known_sid_fn, "IsWellKnownSid"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *)' {aka 'int (*)(ACL *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3581:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3581 | RESOLVE_ADVAPI_MEMBER(security, is_valid_acl, is_valid_acl_fn, "IsValidAcl"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3582:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3582 | RESOLVE_ADVAPI_MEMBER(security, initialize_acl, initialize_acl_fn, "InitializeAcl"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, DWORD, void *)' {aka 'int (*)(ACL *, long unsigned int, long unsigned int, void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3583:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3583 | RESOLVE_ADVAPI_MEMBER(security, add_access_allowed_ace, add_access_allowed_ace_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, DWORD)' {aka 'int (*)(void *, long unsigned int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3585:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3585 | RESOLVE_ADVAPI_MEMBER(security, initialize_security_descriptor, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, BOOL, ACL *, BOOL)' {aka 'int (*)(void *, int, ACL *, int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3587:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3587 | RESOLVE_ADVAPI_MEMBER(security, set_security_descriptor_dacl, set_security_descriptor_dacl_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, void *, BOOL)' {aka 'int (*)(void *, void *, int)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3589:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3589 | RESOLVE_ADVAPI_MEMBER(security, set_security_descriptor_owner, set_security_descriptor_owner_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, void *, DWORD, ACL_INFORMATION_CLASS)' {aka 'int (*)(ACL *, void *, long unsigned int, ACL_INFORMATION_CLASS)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3591:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3591 | RESOLVE_ADVAPI_MEMBER(security, get_acl_information, get_acl_information_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(ACL *, DWORD, void **)' {aka int (*)(ACL *, long unsigned int, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3593:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3593 | RESOLVE_ADVAPI_MEMBER(security, get_ace, get_ace_fn, "GetAce"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void **, void **, ACL **, ACL **, void **)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void **, void **, ACL **, ACL **, void **)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3594:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3594 | RESOLVE_ADVAPI_MEMBER(security, get_security_info, get_security_info_fn, "GetSecurityInfo"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'DWORD (*)(void *, SE_OBJECT_TYPE, SECURITY_INFORMATION, void *, void *, ACL *, ACL *)' {aka 'long unsigned int (*)(void *, SE_OBJECT_TYPE, long unsigned int, void *, void *, ACL *, ACL *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3595:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3595 | RESOLVE_ADVAPI_MEMBER(security, set_security_info, set_security_info_fn, "SetSecurityInfo"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *)' {aka 'int (*)(void *)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3596:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3596 | RESOLVE_ADVAPI_MEMBER(security, impersonate_named_pipe_client, impersonate_named_pipe_client_fn, | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c:3559:29: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void)' {aka 'int (*)(void)'} [-Werror=cast-function-type] 3559 | (context)->member = (type)GetProcAddress((context)->advapi, (symbol)); \ | ^ src/daemon/ipc.c:3598:5: note: in expansion of macro 'RESOLVE_ADVAPI_MEMBER' 3598 | RESOLVE_ADVAPI_MEMBER(security, revert_to_self, revert_to_self_fn, "RevertToSelf"); | ^~~~~~~~~~~~~~~~~~~~~ src/daemon/ipc.c: In function 'win_generation_nonce': src/daemon/ipc.c:4622:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'LONG (*)(void *, unsigned char *, ULONG, ULONG)' {aka 'long int (*)(void *, unsigned char *, long unsigned int, long unsigned int)'} [-Werror=cast-function-type] 4622 | bcrypt ? (bcrypt_gen_random_fn)GetProcAddress(bcrypt, "BCryptGenRandom") : NULL; | ^ src/daemon/ipc.c: In function 'win_pipe_client_is_current_user': src/daemon/ipc.c:5177:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5177 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress(kernel, | ^ src/daemon/ipc.c: In function 'win_pipe_server_is_current_user': src/daemon/ipc.c:5322:18: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5322 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress(kernel, | ^ src/daemon/ipc.c: In function 'cbm_daemon_ipc_connection_peer_pid': src/daemon/ipc.c:5615:22: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5615 | kernel ? (get_named_pipe_client_process_id_fn)GetProcAddress( | ^ src/daemon/ipc.c:5623:22: error: cast between incompatible function types from FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, ULONG *)' {aka 'int (*)(void *, long unsigned int *)'} [-Werror=cast-function-type] 5623 | kernel ? (get_named_pipe_server_process_id_fn)GetProcAddress( | ^ cc1.exe: all warnings being treated as errors make: *** [Makefile.cbm:817: build/c/codebase-memory-mcp] Error 1Reproduction
Compile on windows with mingw as per instructions on README.md
Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations