package/sconeserver: fix build with gcc 11
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 10 Aug 2021 09:14:45 +0000 (11:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 12 Aug 2021 21:47:26 +0000 (23:47 +0200)
commitc786507f076fdebcf49d150ff72ed95102dc7497
tree9f4abd5e1dc9d53bafc500e0d40a856e17f78d36
parentee2267745a3e6f9e100d919496446ae9466dd521
package/sconeserver: fix build with gcc 11

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/sconeserver/0001-sconex-Descriptor.cpp-fix-build-with-gcc-11.patch [new file with mode: 0644]