diff options
author | David Seifert <soap@gentoo.org> | 2017-05-01 10:47:29 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-05-01 10:48:27 +0200 |
commit | f96504daab52bd8c531d1c859d5dd935fc97c607 (patch) | |
tree | 8765ff6a648d9e716b7dde053d6a0a3257a10d58 /media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch | |
parent | kde-plasma/plasma-workspace: Also remove kio_remote.po (diff) | |
download | gentoo-f96504daab52bd8c531d1c859d5dd935fc97c607.tar.gz gentoo-f96504daab52bd8c531d1c859d5dd935fc97c607.tar.bz2 gentoo-f96504daab52bd8c531d1c859d5dd935fc97c607.zip |
media-sound/drumstick: Port to EAPI 6
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch')
-rw-r--r-- | media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch b/media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch new file mode 100644 index 000000000000..165db470592e --- /dev/null +++ b/media-sound/drumstick/files/0.5.0-gcc6-narrowing.patch @@ -0,0 +1,26 @@ +Fix GCC 6 failures caused by -Wnarrowing + +--- a/utils/buildsmf/buildsmf.cpp ++++ b/utils/buildsmf/buildsmf.cpp +@@ -53,8 +53,8 @@ + m_engine->writeKeySignature(0, 2, major_mode); // D major (2 sharps) + + // system exclusive event +- static char gsreset[] = { 0xf0, 0x41, 0x10, 0x42, 0x12, +- 0x40, 0x00, 0x7f, 0x00, 0x41, 0xf7 }; ++ static char gsreset[] = { (char)0xf0, 0x41, 0x10, 0x42, 0x12, ++ 0x40, 0x00, 0x7f, 0x00, 0x41, (char)0xf7 }; + m_engine->writeMidiEvent(0, system_exclusive, sizeof(gsreset), gsreset); + + // some note events +--- a/utils/testevents/testevents.cpp ++++ b/utils/testevents/testevents.cpp +@@ -262,7 +262,7 @@ + dumpEvent(new KeyPressEvent(5, 60, 124)); + dumpEvent(new ChanPressEvent(6, 111)); + dumpEvent(new PitchBendEvent(7, 1234)); +- char sysex[] = {0xf0, 0x41, 0x10, 0x42, 0x12, 0x40, 0, 0x7f, 0, 0x41, 0xf7}; ++ char sysex[] = {(char)0xf0, 0x41, 0x10, 0x42, 0x12, 0x40, 0, 0x7f, 0, 0x41, (char)0xf7}; + dumpEvent(new SysExEvent(QByteArray(sysex, sizeof(sysex)))); + QString text = "This can be a copyright, song name, instrument, lyric..."; + TextEvent te(text, 3); |