diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-15 13:38:09 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-15 13:38:09 +0100 |
commit | db70871b2044b9bfde346d6f4027dafb0a013c4c (patch) | |
tree | 34548aee54e5458d3754bd8c8f987acdb5ee444c /net-misc/wget2/files/wget2-fix-build-issues-with-clang-16.patch | |
parent | 1c382dc5dbc52576ac2300fee0498af8af44e7b4 (diff) |
gentoo auto-resync : 15:06:2023 - 13:38:09
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 + |