jack: fix for gcc6

It doesn't hurt to add that fix for gcc4 as well.
This commit is contained in:
Juergen Buchmueller 2016-09-11 18:15:19 +02:00
parent 1fc3adddb6
commit 2f8424f741
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
Fix for gcc6 -Wnarrowing error.
--- tests/iodelay.cpp 2014-07-18 14:28:13.000000000 +0200
+++ tests/iodelay.cpp 2016-09-11 18:12:00.563013354 +0200
@@ -167,8 +167,8 @@
static jack_port_t *jack_capt;
static jack_port_t *jack_play;
-jack_latency_range_t capture_latency = {-1, -1};
-jack_latency_range_t playback_latency = {-1, -1};
+jack_latency_range_t capture_latency = {(jack_nframes_t)-1, (jack_nframes_t)-1};
+jack_latency_range_t playback_latency = {(jack_nframes_t)-1, (jack_nframes_t)-1};
void
latency_cb (jack_latency_callback_mode_t mode, void *arg)
@@ -266,4 +266,4 @@
return 0;
}
-// --------------------------------------------------------------------------------
\ Kein Zeilenumbruch am Dateiende.
+// --------------------------------------------------------------------------------

View file

@ -1,7 +1,7 @@
# Template file for 'jack'
pkgname=jack
version=1.9.10
revision=9
revision=10
# XXX libffado (firewire)
hostmakedepends="pkg-config python"
makedepends="eigen opus-devel libsamplerate-devel readline-devel dbus-devel celt-devel"