diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2017-12-27 18:40:46 +0100 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2017-12-27 18:46:15 +0100 |
commit | 0ca6aa99f6e02dc23c1b27269c681a67cada472e (patch) | |
tree | d5c9a274f2674d03e3598262c91602beef12fe25 /media-radio/svxlink/files | |
parent | app-portage/grs: remove older version (diff) | |
download | gentoo-0ca6aa99f6e02dc23c1b27269c681a67cada472e.tar.gz gentoo-0ca6aa99f6e02dc23c1b27269c681a67cada472e.tar.bz2 gentoo-0ca6aa99f6e02dc23c1b27269c681a67cada472e.zip |
media-radio/svxlink: Backport fix for newer gcc from github.
Thanks toralf.
Closes: https://bugs.gentoo.org/639592
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'media-radio/svxlink/files')
-rw-r--r-- | media-radio/svxlink/files/svxlink-15.11-gcc72.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media-radio/svxlink/files/svxlink-15.11-gcc72.patch b/media-radio/svxlink/files/svxlink-15.11-gcc72.patch new file mode 100644 index 000000000000..a55894c62f34 --- /dev/null +++ b/media-radio/svxlink/files/svxlink-15.11-gcc72.patch @@ -0,0 +1,12 @@ +# backported fix for newer compilers +--- src/async/audio/AsyncAudioDeviceAlsa.cpp.orig 2017-12-27 16:32:27.185098621 +0000 ++++ src/async/audio/AsyncAudioDeviceAlsa.cpp 2017-12-27 16:33:33.468067578 +0000 +@@ -548,7 +548,7 @@ + return false; + } + +- if (::abs(real_rate - sample_rate) > 100) ++ if (::abs(static_cast<int>(real_rate) - sample_rate) > 100) + { + cerr << "*** ERROR: The sample rate could not be set to " + << sample_rate << "Hz for ALSA device \"" << dev_name << "\". " |