RFR: 8298006: Build failure by maybe-uninitialized error on Linux s390x GCC8

Ichiroh Takiguchi itakiguchi at openjdk.org
Fri Dec 2 12:31:08 UTC 2022


On Fri, 2 Dec 2022 08:41:18 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

> I changed GCC toolchain from GCC6 to GCC8 on SLES12SP5 Linux s390x.
> I could see following errors:
> 
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c: In function 'allocateRasterArray':
> src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:2944:73: error: 'roff[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>                              (((*inP&rasterP->sppsm.maskArray[c]) >> roff[c])
>                                                                      ~~~~^~~
> 
> 
> According to error messages,
> roff and loff may not be initialized.

`linux-x86 / test (langtools/tier1)` was failed, but it's not related this issue.

-------------

PR: https://git.openjdk.org/jdk/pull/11475



More information about the client-libs-dev mailing list