diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d74724..922b4c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ add_compile_options( -Wall -Wextra -Wpedantic - -Wno-gcc-compat + $<$:-Wno-gcc-compat> -Wno-unused-function) # Console/embedded cross-compilation targets. When any is ON, desktop-specific diff --git a/src/server/xrpc_server.c b/src/server/xrpc_server.c index 6107f7c..a237e2e 100644 --- a/src/server/xrpc_server.c +++ b/src/server/xrpc_server.c @@ -1004,7 +1004,7 @@ wf_server_mhd_handler(void *cls, struct MHD_Connection *conn, const char *url, struct MHD_Response *mhd_resp; wf_xrpc_response resp = WF_XRPC_RESPONSE_INIT; wf_xrpc_request req = {0}; - wf_route_kind kind; + wf_route_kind kind = WF_ROUTE_QUERY; wf_route *route = NULL; wf_http_route *http_route = NULL; char *nsid = NULL; diff --git a/src/transport/websocket.c b/src/transport/websocket.c index aed81c2..af27cce 100644 --- a/src/transport/websocket.c +++ b/src/transport/websocket.c @@ -188,8 +188,7 @@ wf_status wf_websocket_receive(wf_websocket *socket, size_t received = 0; struct curl_ws_frame *meta = NULL; CURLcode result = - curl_ws_recv(socket->curl, chunk, sizeof(chunk), &received, - (const struct curl_ws_frame **)&meta); + curl_ws_recv(socket->curl, chunk, sizeof(chunk), &received, &meta); if (result == CURLE_AGAIN) return WF_ERR_WOULD_BLOCK; if (result != CURLE_OK || !meta || (meta->flags & CURLWS_CLOSE)) { wf_websocket_discard_pending(socket); diff --git a/src/transport/xrpc.c b/src/transport/xrpc.c index 3b34306..12cf03a 100644 --- a/src/transport/xrpc.c +++ b/src/transport/xrpc.c @@ -349,7 +349,7 @@ const char *wf_xrpc_last_error(const wf_xrpc_client *client) { * that treat the return as borrowed, return the live pointer under lock. * Callers that need a stable copy should call this before any other * request on the same client. */ - free(copy); + free((void *)copy); return err; }