diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-03-07 01:29:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-03-07 01:29:54 +0000 |
commit | 5e6196fe405021a38db19e9d595eab3f18cc2188 (patch) | |
tree | fe3e2481e4e7133a6f1befc028e6a2c23cf0b039 | |
parent | c25f718f0e7397fb74c4895ca39f8a081139430b (diff) | |
parent | 1cb1ade0f477cfe5dffdf6b5ca3622df147f8c43 (diff) |
Merge "binding: nfc: fix build warnings"
-rw-r--r-- | binding/afm-nfc-binding.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/binding/afm-nfc-binding.c b/binding/afm-nfc-binding.c index b869a2f..5b046f2 100644 --- a/binding/afm-nfc-binding.c +++ b/binding/afm-nfc-binding.c @@ -105,8 +105,6 @@ static void adapter_added(const char *aname, void *ptr) static void adapter_removed(const char *aname, void *ptr) { nfc_binding_data *data = ptr; - neardal_adapter*adapter; - int ret; if (!data || !data->adapter) return; @@ -292,7 +290,7 @@ static void install_tag_callbacks(void *usrptr) AFB_API_DEBUG(afbBindingV3root, "NFC tag callbacks registered\n"); } -static void remove_adapter_callbacks(void *usrptr) +static void __attribute__((unused)) remove_adapter_callbacks(void *usrptr) { neardal_set_cb_adapter_added(NULL, usrptr); neardal_set_cb_adapter_removed(NULL, usrptr); @@ -474,9 +472,9 @@ static void unsubscribe(afb_req_t request) } static const afb_verb_t binding_verbs[] = { - { .verb = "subscribe", .callback = subscribe, + { .verb = "subscribe", .callback = subscribe, .info = "Subscribe to NFC events" }, - { .verb = "unsubscribe", .callback = unsubscribe, + { .verb = "unsubscribe", .callback = unsubscribe, .info = "Unsubscribe to NFC events" }, { } }; |