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/NotificationServer/main.cpp | |
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/NotificationServer/main.cpp')
-rw-r--r-- | Userland/Services/NotificationServer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/NotificationServer/main.cpp b/Userland/Services/NotificationServer/main.cpp index 5980d95192..7a3182166e 100644 --- a/Userland/Services/NotificationServer/main.cpp +++ b/Userland/Services/NotificationServer/main.cpp @@ -23,7 +23,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) server->on_accept = [&](auto client_socket) { static int s_next_client_id = 0; int client_id = ++s_next_client_id; - IPC::new_client_connection<NotificationServer::ClientConnection>(move(client_socket), client_id); + (void)IPC::new_client_connection<NotificationServer::ClientConnection>(move(client_socket), client_id); }; TRY(Core::System::unveil("/res", "r")); |