All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/flatcc: disable -Werror
Date: Wed, 19 May 2021 22:58:27 +0200	[thread overview]
Message-ID: <20210519205827.GM2268078@scaer> (raw)
In-Reply-To: <20210519194104.48784-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2021-05-19 21:41 +0200, Fabrice Fontaine spake thusly:
> Disable -Werror to fix the following build failure with gcc 11:
> 
> /data/buildroot-autobuilder/instance-0/output-1/build/host-flatcc-0.6.0/include/flatcc/reflection/flatbuffers_common_builder.h: In function 'flatbuffers_char_array_copy_from_pe':
> /data/buildroot-autobuilder/instance-0/output-1/build/host-flatcc-0.6.0/include/flatcc/reflection/flatbuffers_common_builder.h:341:3: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
>   341 |   for (i = 0; i < n; ++i) N ## _copy_from_pe(&p[i], &p2[i]); return p; }\
>       |   ^~~
> 
> An other option would have been to retrieve the following upstream
> commit:
> https://github.com/dvidelabs/flatcc/commit/f8c4140dd9dde61c86db751f6002def78754fced
> but disabling -Werror is more future-proof
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/4d5cdddbfeefdeb943234b76eb08b04376f3c36d
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/flatcc/flatcc.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/flatcc/flatcc.mk b/package/flatcc/flatcc.mk
> index c27809b86a..fcace691c0 100644
> --- a/package/flatcc/flatcc.mk
> +++ b/package/flatcc/flatcc.mk
> @@ -10,6 +10,8 @@ FLATCC_LICENSE = Apache-2.0
>  FLATCC_LICENSE_FILES = LICENSE
>  FLATCC_INSTALL_STAGING = YES
>  FLATCC_DEPENDENCIES = host-flatcc
> +FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
> +HOST_FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
>  
>  # Disable build of tests and samples
>  FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
> -- 
> 2.30.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2021-05-19 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 19:41 [Buildroot] [PATCH 1/1] package/flatcc: disable -Werror Fabrice Fontaine
2021-05-19 20:58 ` Yann E. MORIN [this message]
2021-05-23 16:03 ` Peter Korsgaard

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=20210519205827.GM2268078@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.