[Bug 268366] java/openjdk17: fix build with clang 15
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 268366] java/openjdk17: fix build with clang 15"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Dec 2022 12:49:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268366
Bug ID: 268366
Summary: java/openjdk17: fix build with clang 15
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: java@FreeBSD.org
Reporter: dim@FreeBSD.org
Flags: maintainer-feedback?(java@FreeBSD.org)
Assignee: java@FreeBSD.org
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk17 failed to build with clang 15:
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:374: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);
^
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:393: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,
^
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:398: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);
^
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:399: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);
^
/wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/unix/native/libnet/DefaultProxySelector.c:435: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);
^
This is because clang 15 warns by default about functions without arguments in
their prototypes. Fix this by suppressing the warning.
--
You are receiving this mail because:
You are the assignee for the bug.