Fix on GCC v10:
tools/nfctool/adapter.c: In function ‘adapter_all_get_devices’:
tools/nfctool/adapter.c:55:28: error: cast between incompatible function types from
‘void (*)(struct nfc_adapter *)’ to ‘void (*)(void *, void *)’
[-Werror=cast-function-type]
55 | g_slist_foreach(adapters, (GFunc)adapter_get_devices, NULL);
| ^
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski(a)canonical.com>
---
tools/nfctool/adapter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/nfctool/adapter.c b/tools/nfctool/adapter.c
index beaee53243ca..5a0c34a0f28b 100644
--- a/tools/nfctool/adapter.c
+++ b/tools/nfctool/adapter.c
@@ -36,7 +36,7 @@ static GSList *adapters;
static struct nfc_adapter *selected_adapter;
-static void adapter_get_devices(struct nfc_adapter *adapter)
+static void adapter_get_devices(struct nfc_adapter *adapter, gpointer user_data)
{
if (adapter->rf_mode == NFC_RF_INITIATOR)
nl_get_targets(adapter);
--
2.27.0