Fresh build is failing for me with no customization:
api/ApiServerMHD.cpp: In function ‘void resource_api::secure_queue_response(MHD_Connection*, unsigned int, MHD_Response*)’:
api/ApiServerMHD.cpp:400:60: error: invalid conversion from ‘int (*)(void*, MHD_ValueKind, const char*, const char*)’ to ‘MHD_KeyValueIterator’ {aka ‘MHD_Result (*)(void*, MHD_ValueKind, const char*, const char*)’} [-fpermissive]
400 | MHD_get_connection_values(connection, MHD_HEADER_KIND, _extract_host_header_it_cb, (void*)&host);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void*, MHD_ValueKind, const char*, const char*)
In file included from api/ApiServerMHD.h:28,
from api/ApiServerMHD.cpp:22:
/usr/include/microhttpd.h:2699:49: note: initializing argument 3 of ‘int MHD_get_connection_values(MHD_Connection*, MHD_ValueKind, MHD_KeyValueIterator, void*)’
2699 | MHD_KeyValueIterator iterator,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
api/ApiServerMHD.cpp: In member function ‘bool resource_api::ApiServerMHD::start()’:
api/ApiServerMHD.cpp:500:32: error: invalid conversion from ‘int (*)(void*, const sockaddr*, socklen_t)’ {aka ‘int (*)(void*, const sockaddr*, unsigned int)’} to ‘MHD_AcceptPolicyCallback’ {aka ‘MHD_Result (*)(void*, const sockaddr*, unsigned int)’} [-fpermissive]
500 | &static_acceptPolicyCallback, this,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void*, const sockaddr*, socklen_t) {aka int (*)(void*, const sockaddr*, unsigned int)}
In file included from api/ApiServerMHD.h:28,
from api/ApiServerMHD.cpp:22:
/usr/include/microhttpd.h:2427:44: note: initializing argument 3 of ‘MHD_Daemon* MHD_start_daemon(unsigned int, uint16_t, MHD_AcceptPolicyCallback, void*, MHD_AccessHandlerCallback, void*, ...)’
2427 | MHD_AcceptPolicyCallback apc, void *apc_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
api/ApiServerMHD.cpp:501:32: error: invalid conversion from ‘int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)’ {aka ‘int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)’} to ‘MHD_AccessHandlerCallback’ {aka ‘MHD_Result (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)’} [-fpermissive]
501 | &static_accessHandlerCallback, this,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**) {aka int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)}
In file included from api/ApiServerMHD.h:28,
from api/ApiServerMHD.cpp:22:
/usr/include/microhttpd.h:2428:45: note: initializing argument 5 of ‘MHD_Daemon* MHD_start_daemon(unsigned int, uint16_t, MHD_AcceptPolicyCallback, void*, MHD_AccessHandlerCallback, void*, ...)’
2428 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
api/ChatHandler.cpp: In member function ‘void resource_api::ChatHandler::handleMarkChatAsRead(resource_api::Request&, resource_api::Response&)’:
api/ChatHandler.cpp:1241:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1241 | if(id.isPeerId() && mUnreadMsgNotify)
| ^~
api/ChatHandler.cpp:1244:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1244 | mStateTokenServer->replaceToken(mMsgStateToken);
| ^~~~~~~~~~~~~~~~~
Pinned Comments
xiota commented on 2024-08-16 17:04 (UTC) (edited on 2024-08-25 00:56 (UTC) by xiota)
This package now uses pinned commits.