RFR: JDK-8305646: compile error on Alpine with gcc12 after 8298619 in libGetXSpace.c
Aleksey Shipilev
shade at openjdk.org
Wed Apr 5 11:10:15 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.
Marked as reviewed by shade (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/13349#pullrequestreview-1372674972
More information about the core-libs-dev
mailing list