From 27ae2f4fb252cf57beaed99fc1abeea66ce6a6b2 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Mon, 4 May 2015 16:28:14 -0700 Subject: [PATCH] tools/gatt-service: Fix clang compile error This patch fixes the following compile warning when bluez is compiled using clang: tools/gatt-service.c:77:19: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] static const char const *ias_alert_level_props[] = { ^ --- tools/gatt-service.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/gatt-service.c b/tools/gatt-service.c index 33e0d6a0e..9baa9e148 100644 --- a/tools/gatt-service.c +++ b/tools/gatt-service.c @@ -74,9 +74,7 @@ struct descriptor { * properties are defined at doc/gatt-api.txt. See "Flags" * property of the GattCharacteristic1. */ -static const char const *ias_alert_level_props[] = { - "write-without-response", - NULL }; +static const char *ias_alert_level_props[] = { "write-without-response", NULL }; static gboolean desc_get_uuid(const GDBusPropertyTable *property, DBusMessageIter *iter, void *user_data) -- 2.47.3