From: Szymon Janc <szymon.janc@tieto.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] android/tester: Fix build error
Date: Wed, 03 Sep 2014 16:07:57 +0200 [thread overview]
Message-ID: <6353699.fM38oMxFUZ@uw000953> (raw)
In-Reply-To: <1409726878-14547-1-git-send-email-lukasz.rymanowski@tieto.com>
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
prev parent reply other threads:[~2014-09-03 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 6:47 [PATCH] android/tester: Fix build error Lukasz Rymanowski
2014-09-03 14:07 ` Szymon Janc [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6353699.fM38oMxFUZ@uw000953 \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=lukasz.rymanowski@tieto.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox