mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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,
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user