diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-14 15:13:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-14 15:13:45 +0100 |
commit | b9e8f3cc44aed3b6da71c7510c6287bf7bbbc66b (patch) | |
tree | 4b47f3026f10252cff69e7a4346215a4da4f0f1c /net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch | |
parent | 3d952d0bfe7b386699eb32d1431deb0c538f044d (diff) |
gentoo auto-resync : 14:06:2023 - 15:13:45
Diffstat (limited to 'net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch')
-rw-r--r-- | net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch b/net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch new file mode 100644 index 000000000000..ca671879a1e3 --- /dev/null +++ b/net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch @@ -0,0 +1,28 @@ +https://gitlab.com/gnuwget/wget2/-/merge_requests/523 +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Mon, 29 May 2023 08:34:33 +0000 +Subject: [PATCH] libwget/thread.c: Fix build issues with clang-16 + +With clang 16, specially on with musl libc, it would result in an +incompatible pointer to integer conversion error. As clang 16 has made a +few options default, including -Wincompatible-function-pointer-types. +This patch fixes that error. + +First discovered on Gentoo's musl llvm profile. Please refer +https://bugs.gentoo.org/898058. + +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- a/libwget/thread.c ++++ b/libwget/thread.c +@@ -289,7 +289,7 @@ int wget_thread_join(wget_thread *thread) + */ + wget_thread_id wget_thread_self(void) + { +- return gl_thread_self(); ++ return (wget_thread_id) gl_thread_self(); + } + + /** +-- +2.40.1 + |