Integrated: 8317696: Fix compilation with clang-16

2023-10-17 Thread Jan Kratochvil
On Sat, 7 Oct 2023 16:24:29 GMT, Jan Kratochvil wrote: > `--with-toolchain-type=clang` fails the compilation for me with > `clang-16.0.6-3.fc38.x86_64` > > While the warnings can be disabled I find better to just fix them. The GTK > prototypes in JDK reported by clang are ei

Re: RFR: 8317696: Fix compilation with clang-16 [v3]

2023-10-11 Thread Jan Kratochvil
On Tue, 10 Oct 2023 20:37:07 GMT, Phil Race wrote: >> src/java.desktop/unix/native/common/awt/awt_GraphicsEnv.h line 53: >> >>> 51: #define MITSHM_PERM_OWNER (0600) >>> 52: >>> 53: extern int XShmQueryExtension(Display* dpy); >> >> I wonder if it's even needed here: the declaration should com

Re: RFR: 8317696: Fix compilation with clang-16 [v4]

2023-10-11 Thread Jan Kratochvil
(&error); > ^ > Compiling X11Renderer.c (for libawt_headless.so) > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11PMBlitLoops.c:29: > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.h:29: &g

Re: RFR: 8317696: Fix compilation with clang-16 [v3]

2023-10-09 Thread Jan Kratochvil
On Mon, 9 Oct 2023 14:38:27 GMT, Daniel JeliƄski wrote: >> Jan Kratochvil has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove declaration changes which are not required >>- suggested by djelinski &g

Re: RFR: 8317696: Fix compilation with clang-16 [v3]

2023-10-09 Thread Jan Kratochvil
(&error); > ^ > Compiling X11Renderer.c (for libawt_headless.so) > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11PMBlitLoops.c:29: > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.h:29: &g

Re: RFR: 8317696: Fix compilation with clang-16 [v2]

2023-10-09 Thread Jan Kratochvil
(&error); > ^ > Compiling X11Renderer.c (for libawt_headless.so) > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11PMBlitLoops.c:29: > In file included from > src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.h:2

RFR: 8317696: Fix compilation with clang-16

2023-10-07 Thread Jan Kratochvil
8317696: Fix compilation with clang-16 - Commit messages: - 8317696: Fix compilation with clang-16 Changes: https://git.openjdk.org/jdk/pull/16092/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16092&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8317696 Stats: 17