strukturag / libheif

libheif is an HEIF and AVIF file format decoder and encoder.
Other
1.76k stars 302 forks source link

Build error with GCC-13 #921

Closed fancycode closed 1 year ago

fancycode commented 1 year ago

This was reported for the Debian package:

/<<PKGBUILDDIR>>/libheif/heif_colorconversion.cc: In member function ‘virtual std::shared_ptr<heif::HeifPixelImage> Op_mono_to_RGB24_32::convert_colorspace(const std::shared_ptr<const heif::HeifPixelImage>&, const heif::ColorState&, const heif::ColorConversionOptions&)’:
/<<PKGBUILDDIR>>/libheif/heif_colorconversion.cc:1902:71: error: ‘in_a’ may be used uninitialized [-Werror=maybe-uninitialized]
 1902 |         out_p[y * out_p_stride + 4 * x + 3] = in_a[x + y * in_a_stride];
      |                                                                       ^
/<<PKGBUILDDIR>>/libheif/heif_colorconversion.cc:1873:26: note: ‘in_a’ was declared here
 1873 |   const uint8_t* in_y, * in_a;
      |                          ^~~~
cc1plus: all warnings being treated as errors

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037730 for details.

fancycode commented 1 year ago

The downstream report was for version 1.15.1 and doesn't seem to happen any more with 1.16.2, closing.