net-libs/sofia-sip: fix build with gcc14

Closes: https://bugs.gentoo.org/932484
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-10-12 23:37:36 +09:00
parent 479b74bf4c
commit ba7491a444
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,12 @@
https://bugs.gentoo.org/932484
--- a/libsofia-sip-ua/sip/sip_basic.c
+++ b/libsofia-sip-ua/sip/sip_basic.c
@@ -2901,7 +2901,7 @@ issize_t sip_identity_d(su_home_t *home, sip_header_t *h, char *s, isize_t slen)
ext = strchr(ppt, ';');
if (ext) {
- msg_param_t *params = su_alloc(home, sizeof(msg_param_t));
+ msg_param_t const *params = su_alloc(home, sizeof(msg_param_t));
if (msg_params_d(home, &ext, &params) >= 0) {
id->id_info_params = params;
}

View File

@ -38,6 +38,11 @@ DOCS=(
docs/.
)
PATCHES=(
# fix build with gcc14
"${FILESDIR}/${P}-gcc14.patch"
)
src_prepare() {
local -a TESTS_DESELECT=(
# Avoid tests that make too many assumptions about the