From c66ab18cd30285ce9b86a81a4bd1eb1d57ba8b6e Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 6 Nov 2014 17:00:53 +0200 Subject: [PATCH] android/client: Fix unused warning for gatt client in Android 5 --- 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 6a0901205..5f0eb1c29 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); -- 2.47.3