From 2644b7d5aa22f33a78a467a516470ad5b6ffb0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 11 Jul 2022 12:08:07 +0200 Subject: [PATCH] Initialize _a and _b in constructor (-Weffc). --- repos/hello_tutorial/src/hello/client/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/hello_tutorial/src/hello/client/main.cc b/repos/hello_tutorial/src/hello/client/main.cc index eb4f12d569..e5d1a2922a 100644 --- a/repos/hello_tutorial/src/hello/client/main.cc +++ b/repos/hello_tutorial/src/hello/client/main.cc @@ -37,8 +37,8 @@ struct HelloClient { return; } - _a = _config.xml().attribute_value("a", 2); - _b = _config.xml().attribute_value("b", 5); + _a = _config.xml().attribute_value("a", (int)2); + _b = _config.xml().attribute_value("b", (int)5); } Genode::Signal_handler _config_handler { @@ -55,7 +55,7 @@ struct HelloClient { Genode::log("hello test completed."); } - HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _hello(conn) + HelloClient(Genode::Env &env, Hello::Connection &conn) : _env(env), _hello(conn), _a(5), _b(2) {} };