Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Simon Dawson <spdawson@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 11
Date: Thu, 12 Aug 2021 23:47:40 +0200	[thread overview]
Message-ID: <20210812234740.4647dcc8@windsurf> (raw)
In-Reply-To: <20210810091445.3652881-1-fontaine.fabrice@gmail.com>

On Tue, 10 Aug 2021 11:14:45 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure with gcc 11:
> 
> In file included from ../sconex/sconex.h:229,
>                  from ../sconex/Descriptor.h:63,
>                  from Descriptor.cpp:22:
> Descriptor.cpp: In member function 'void scx::Descriptor::add_stream(scx::Stream*)':
> Descriptor.cpp:150:22: error: ordered comparison of pointer with integer zero ('scx::Stream*' and 'int')
>   150 |   DEBUG_ASSERT(stream>=0,"add_stream() Invalid stream");
>       |                ~~~~~~^~~
> Descriptor.cpp: In member function 'bool scx::Descriptor::remove_stream(scx::Stream*)':
> Descriptor.cpp:204:22: error: ordered comparison of pointer with integer zero ('scx::Stream*' and 'int')
>   204 |   DEBUG_ASSERT(stream>=0,"remove_stream() Invalid stream");
>       |                ~~~~~~^~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ccc9562e83fd2bd312d21b3124be42dfe4b7e850
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...Descriptor.cpp-fix-build-with-gcc-11.patch | 54 +++++++++++++++++++
>  1 file changed, 54 insertions(+)
>  create mode 100644 package/sconeserver/0001-sconex-Descriptor.cpp-fix-build-with-gcc-11.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

      reply	other threads:[~2021-08-12 21:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10  9:14 [Buildroot] [PATCH 1/1] package/sconeserver: fix build with gcc 11 Fabrice Fontaine
2021-08-12 21:47 ` Thomas Petazzoni [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=20210812234740.4647dcc8@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=spdawson@gmail.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