package/sane-backends: fix gcc-4.8 compile
authorPeter Seiderer <ps.report@gmx.net>
Mon, 15 Mar 2021 20:13:45 +0000 (21:13 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 16 Mar 2021 21:00:26 +0000 (22:00 +0100)
commitf12ffc88a69435628cd71c66a3b482cc2bb9e182
treecdfaed5d2752ed3269561ae973334a841beedb6c
parentdd8813f90533db5caad54fb07c5799777c8ceeeb
package/sane-backends: fix gcc-4.8 compile

Add patch to use legacy initializer variant to fix gcc-4.8 compile.

Fixes:

  - http://autobuild.buildroot.net/results/9d1cd0d0aa8c929c4b1b23b04075c331c1be80e0

  genesys/utilities.h:229:23: error: invalid initialization of non-const reference of type 'std::basic_ios<char>&' from an rvalue of type '<brace-enclosed initializer list>'
           stream_{stream}
                         ^
  genesys/image_pipeline.cpp:715:19: error: invalid initialization of non-const reference of type 'genesys::ImagePipelineNode&' from an rvalue of type '<brace-enclosed initializer list>'
       source_{source}
                     ^

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/sane-backends/0002-genesys-fix-gcc-4.8-compile.patch [new file with mode: 0644]