src/java.base/unix/native/libnet/DefaultProxySelector.c:378:41: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] proxies = (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error); ^ src/java.base/unix/native/libnet/DefaultProxySelector.c:397:63: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*g_network_address_parse_uri)(proxies[i], 0, ^ src/java.base/unix/native/libnet/DefaultProxySelector.c:402:70: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] phost = (*g_network_address_get_hostname)(conn); ^ src/java.base/unix/native/libnet/DefaultProxySelector.c:403:66: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] pport = (*g_network_address_get_port)(conn); ^ src/java.base/unix/native/libnet/DefaultProxySelector.c:445:22: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*g_strfreev)(proxies); ^ src/java.base/unix/native/libnet/DefaultProxySelector.c:448:25: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*g_clear_error)(&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: src/java.desktop/unix/native/common/awt/awt_GraphicsEnv.h:53:12: error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Werror,-Wdeprecated-non-prototype] extern int XShmQueryExtension(); ^ /usr/include/X11/extensions/XShm.h:59:6: note: conflicting prototype is here Bool XShmQueryExtension( ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c:1468:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_notebook_new)(NULL); ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c:1476:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_toggle_button_new)(NULL); ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c:1485:42: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_toolbar_new)(NULL); ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c:1255:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_notebook_new)(NULL); ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c:1263:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_toggle_button_new)(NULL); ^ src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c:1272:42: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] (*fp_gtk_toolbar_new)(NULL); ^