[PATCHv2 3/3] android/client: Fix unused warning for gatt client in Android 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/client/if-gatt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index 6a09012..5f0eb1c 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -928,7 +928,9 @@ static void unregister_client_p(int argc, const char **argv)
 
 static void scan_p(int argc, const char **argv)
 {
+#if ANDROID_VERSION < PLATFORM_VER(5, 0, 0)
 	int client_if;
+#endif
 	int start = 1;
 
 	RETURN_IF_NULL(if_gatt);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux