[PATCH 4/4] tools/gatt-service: Fix clang compile error

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

 



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 33e0d6a..9baa9e1 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.2.0.rc0.207.ga3a616c

--
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