media-sound/mangler: more c++11 fixes

Closes: https://bugs.gentoo.org/784401
Package-Manager: Portage-3.0.18, Repoman-3.0.2
RepoMan-Options: --force
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
This commit is contained in:
Matthew Thode
2021-04-26 21:57:38 -05:00
parent 4e848e1a42
commit 1122d0558b
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
Description: Declare byte array as unsigned char rather than char to avoid narrowing
A step up in pedantics in C++11 has identified a byte array that was not
declared as unsigned.
Author: William Panlener <wpanlener@gmail.com>
Bug-Debian: https://bugs.debian.org/805160
Forwarded: no
--- a/src/manglerg15.h
+++ b/src/manglerg15.h
@@ -52,7 +52,7 @@
std::vector<Glib::ustring> events;
};
-const char g15_blank[] = {
+const unsigned char g15_blank[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

View File

@@ -33,7 +33,10 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}/mangler-version-info.patch" )
PATCHES=(
"${FILESDIR}/mangler-version-info.patch"
"${FILESDIR}/fix_ftbfs_narrowing_conversion.patch"
)
src_configure() {
tc-export CC