Re: [PATCH] android/tester: Fix build error

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

 



Hi Łukasz,

On Wednesday 03 of September 2014 08:47:58 Lukasz Rymanowski wrote:
> 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 = {

Applied. Thanks. 

-- 
Best regards, 
Szymon Janc
--
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