From 3ba8ddc85c8b4dac5508fbf532531cfab764a6a0 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 2 Sep 2024 17:27:09 +0200 Subject: [PATCH] gui_session: mark RPC client methods as nodiscard Issue #5340 --- repos/os/include/gui_session/client.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repos/os/include/gui_session/client.h b/repos/os/include/gui_session/client.h index 37da61b4bd..d681e05879 100644 --- a/repos/os/include/gui_session/client.h +++ b/repos/os/include/gui_session/client.h @@ -30,19 +30,19 @@ struct Gui::Session_client : Rpc_client Input::Session_capability input() override { return call(); } - View_result view(View_id id, View_attr const &attr) override { + [[nodiscard]] View_result view(View_id id, View_attr const &attr) override { return call(id, attr); } - Child_view_result child_view(View_id id, View_id parent, View_attr const &attr) override { + [[nodiscard]] Child_view_result child_view(View_id id, View_id parent, View_attr const &attr) override { return call(id, parent, attr); } void destroy_view(View_id view) override { call(view); } - Associate_result associate(View_id id, View_capability view) override { + [[nodiscard]] Associate_result associate(View_id id, View_capability view) override { return call(id, view); } - View_capability_result view_capability(View_id id) override { + [[nodiscard]] View_capability_result view_capability(View_id id) override { return call(id); } void release_view_id(View_id id) override { @@ -59,7 +59,7 @@ struct Gui::Session_client : Rpc_client void mode_sigh(Signal_context_capability sigh) override { call(sigh); } - Buffer_result buffer(Framebuffer::Mode mode, bool alpha) override { + [[nodiscard]] Buffer_result buffer(Framebuffer::Mode mode, bool alpha) override { return call(mode, alpha); } void focus(Gui::Session_capability session) override {