diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2021-03-10 13:33:35 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2021-03-30 16:21:46 +0300 |
commit | 59df995dea5814c0a764ebc3cdad5d408f13793c (patch) | |
tree | 0a0ba1da6e7bbe0ff8399925498423bd0419ebb4 /src | |
parent | 7916f25315b90c5f24038f94a71c28dc17c8ba45 (diff) |
src/homescreen, hs-client, hs-proxy: Fix trivial unused warningskoi_11.0.5koi_11.0.4koi_11.0.3koi_11.0.2koi_11.0.1koi/11.0.5koi/11.0.4koi/11.0.3koi/11.0.2koi/11.0.111.0.511.0.411.0.311.0.211.0.1koi
As we're now using Werror, need clean-up some trivial bits.
Bug-AGL: SPEC-3843
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I17c7e61c0fd3b420a4c76fa40fe6486d2bad0c5e
Diffstat (limited to 'src')
-rw-r--r-- | src/homescreen.cpp | 1 | ||||
-rw-r--r-- | src/hs-client.cpp | 2 | ||||
-rw-r--r-- | src/hs-proxy.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/homescreen.cpp b/src/homescreen.cpp index 65c0064..8470635 100644 --- a/src/homescreen.cpp +++ b/src/homescreen.cpp @@ -504,6 +504,7 @@ static const afb_verb_t verbs[]= { */ static int preinit(afb_api_t api) { + (void) api; AFB_DEBUG("binding preinit (was register)"); return 0; } diff --git a/src/hs-client.cpp b/src/hs-client.cpp index 9494f70..185b423 100644 --- a/src/hs-client.cpp +++ b/src/hs-client.cpp @@ -85,6 +85,8 @@ HS_Client::~HS_Client() */ int HS_Client::tap_shortcut(afb_req_t request) { + (void) request; + AFB_INFO("request appid = %s.", my_id.c_str()); struct json_object* push_obj = json_object_new_object(); hs_add_object_to_json_object_str( push_obj, 4, _application_id, my_id.c_str(), diff --git a/src/hs-proxy.cpp b/src/hs-proxy.cpp index aaa67c7..cdbf249 100644 --- a/src/hs-proxy.cpp +++ b/src/hs-proxy.cpp @@ -43,6 +43,7 @@ const char _afm_main[] = "afm-main"; static void api_callback(void *closure, struct json_object *object, const char *error, const char *info, afb_api_t api) { AFB_INFO("asynchronous call, error=%s, info=%s, object=%s.", error, info, json_object_get_string(object)); + (void) api; struct closure_data *cdata = static_cast<struct closure_data *>(closure); if (!cdata->hs_instance) { |