Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] android/tester: Fix build error
@ 2014-09-03  6:47 Lukasz Rymanowski
  2014-09-03 14:07 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Rymanowski @ 2014-09-03  6:47 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lukasz Rymanowski

This fix following error seen when building with gcc 4.6.3

android/tester-gatt.c:135:2: error: initialized field overwritten
[-Werror=override-init]
android/tester-gatt.c:135:2: error: (near initialization for
‘service_1’) [-Werror=override-init]
android/tester-gatt.c:142:2: error: initialized field overwritten
[-Werror=override-init]
android/tester-gatt.c:142:2: error: (near initialization for
‘service_2’) [-Werror=override-init]
---
 android/tester-gatt.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/android/tester-gatt.c b/android/tester-gatt.c
index 625d949..2067ec3 100644
--- a/android/tester-gatt.c
+++ b/android/tester-gatt.c
@@ -131,16 +131,20 @@ static struct bt_action_data bearer_type = {
 
 static btgatt_srvc_id_t service_1 = {
 	.is_primary = true,
-	.id.inst_id = 0,
-	.id.uuid.uu = {0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
+	.id = {
+		.inst_id = 0,
+		.uuid.uu = {0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
 			0x00, 0x10, 0x00, 0x00,  0x00, 0x18, 0x00, 0x00}
+	}
 };
 
 static btgatt_srvc_id_t service_2 = {
 	.is_primary = true,
-	.id.inst_id = 1,
-	.id.uuid.uu = {0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
-			0x00, 0x10, 0x00, 0x00,  0x01, 0x18, 0x00, 0x00}
+	.id = {
+		.inst_id = 1,
+		.uuid.uu = {0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80,
+			0x00, 0x10, 0x00, 0x00,  0x01, 0x18, 0x00, 0x00},
+	}
 };
 
 static btgatt_gatt_id_t characteristic_1 = {
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-03 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03  6:47 [PATCH] android/tester: Fix build error Lukasz Rymanowski
2014-09-03 14:07 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox