summaryrefslogtreecommitdiff
path: root/Userland/Services/Clipboard/main.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-02 11:17:35 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commit92f8514a854233b9b533096006641d57a91d099a (patch)
tree10429026787fc4e2c0bfb679c8f82ff8ba1eabd3 /Userland/Services/Clipboard/main.cpp
parentc67c1b583adec5fd9a40d5d69148c77e7e7acc3a (diff)
downloadserenity-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/Clipboard/main.cpp')
-rw-r--r--Userland/Services/Clipboard/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/Clipboard/main.cpp b/Userland/Services/Clipboard/main.cpp
index 1d97ca9b1e..5e95d376b0 100644
--- a/Userland/Services/Clipboard/main.cpp
+++ b/Userland/Services/Clipboard/main.cpp
@@ -25,7 +25,7 @@ ErrorOr<int> serenity_main(Main::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<Clipboard::ClientConnection>(move(client_socket), client_id);
+ (void)IPC::new_client_connection<Clipboard::ClientConnection>(move(client_socket), client_id);
};
Clipboard::Storage::the().on_content_change = [&] {