Integrated: JDK-8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c

Matthias Baesken mbaesken at openjdk.org
Wed Apr 5 13:30:25 UTC 2023


On Wed, 5 Apr 2023 10:47:17 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> On Alpine Linux, using gcc12, we run now into this compile warning as error :
> In file included from /openjdk/linuxmuslx86_64/jdk/test/jdk/java/io/File/libGetXSpace.c:31:
> /usr/include/sys/errno.h:1:2: error: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Werror=cpp]
>     1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h>
>       | ^~~~~~~
> cc1: all warnings being treated as errors
> 
> We probably better just include <errno.h> like it is done at almost all other places in the codebase.

This pull request has now been integrated.

Changeset: a3137c75
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a3137c750f37d8fb03fd93f12e699df790adb327
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c

Reviewed-by: alanb, shade

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

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


More information about the core-libs-dev mailing list