git: d2bdcba79f55 - 2024Q2 - audio/mumble-server: fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Apr 2024 13:22:55 UTC
The branch 2024Q2 has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=d2bdcba79f55aff26734ced64c78012322cd962a commit d2bdcba79f55aff26734ced64c78012322cd962a Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-04-10 13:17:03 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-04-10 13:22:42 +0000 audio/mumble-server: fix build on i386 /wrkdirs/usr/ports/audio/mumble-server/work/mumble-1.5.613/src/murmur/Server.cpp:1044:21: error: implicit conversion changes signedness: 'int' to 'std::vector<char>::size_type' (aka 'unsigned int') [-Werror,-Wsign-conversion] bufVec.resize(len + 4); ~~~~~~ ~~~~^~~ 1 error generated. Upstream issue: https://github.com/mumble-voip/mumble/issues/6377 Reported by: pkg-fallout Approved by: arrowd (mentor, implicit) MFH: 2024Q2 (cherry picked from commit f0a4c1f73b3bbdb738019d9b476e027a3ba160a8) --- audio/mumble-server/files/patch-src_murmur_Server.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/audio/mumble-server/files/patch-src_murmur_Server.cpp b/audio/mumble-server/files/patch-src_murmur_Server.cpp new file mode 100644 index 000000000000..b5f4a66b56fb --- /dev/null +++ b/audio/mumble-server/files/patch-src_murmur_Server.cpp @@ -0,0 +1,11 @@ +--- src/murmur/Server.cpp.orig 2024-03-03 17:26:27 UTC ++++ src/murmur/Server.cpp +@@ -1041,7 +1041,7 @@ void Server::sendMessage(ServerUser &u, const unsigned + ((reinterpret_cast< quint64 >(ebuffer.data()) + 8) & static_cast< quint64 >(~7)) + 4); + #else + std::vector< char > bufVec; +- bufVec.resize(len + 4); ++ bufVec.resize(static_cast< std::size_t >(len + 4)); + char *buffer = bufVec.data(); + #endif + {