diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-02 11:17:35 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-05 15:31:03 +0100 |
commit | 92f8514a854233b9b533096006641d57a91d099a (patch) | |
tree | 10429026787fc4e2c0bfb679c8f82ff8ba1eabd3 /Userland/Services/LookupServer | |
parent | c67c1b583adec5fd9a40d5d69148c77e7e7acc3a (diff) | |
download | serenity-92f8514a854233b9b533096006641d57a91d099a.zip |
Services: Cast unused IPC::new_client_connection() results to void
These ones all manage their storage internally, whereas the WebContent
and ImageDecoder ones require the caller to manage their lifetime. This
distinction is not obvious to the user without looking through the code,
so an API that makes this clearer would be nice.
Diffstat (limited to 'Userland/Services/LookupServer')
-rw-r--r-- | Userland/Services/LookupServer/LookupServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp index 3147e2c362..8d5f02163a 100644 --- a/Userland/Services/LookupServer/LookupServer.cpp +++ b/Userland/Services/LookupServer/LookupServer.cpp @@ -76,7 +76,7 @@ LookupServer::LookupServer() m_local_server->on_accept = [](auto client_socket) { static int s_next_client_id = 0; int client_id = ++s_next_client_id; - IPC::new_client_connection<ClientConnection>(move(client_socket), client_id); + (void)IPC::new_client_connection<ClientConnection>(move(client_socket), client_id); }; bool ok = m_local_server->take_over_from_system_server(); VERIFY(ok); |