summaryrefslogtreecommitdiff
path: root/pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-31 01:23:39 -0700
committerMichael Forney <mforney@mforney.org>2019-06-04 20:41:14 -0700
commit23bb6a2a057a5e3b87d475a5cf93732338a4eff0 (patch)
treec5df2f7687b46bdb7ec2ddc428e9bb69fe93ad18 /pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch
parentd3f95465ec2fd1080a1e0a17f24c75b7ef1bce5f (diff)
alsa-lib: Fix a few portability issues
Diffstat (limited to 'pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch')
-rw-r--r--pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch b/pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch
new file mode 100644
index 00000000..51bb56bd
--- /dev/null
+++ b/pkg/alsa-lib/patch/0004-Don-t-return-in-a-void-function.patch
@@ -0,0 +1,29 @@
+From 0188839f21a474e7a7ffcf9bddac7d6a0dd140e8 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Fri, 31 May 2019 01:15:05 -0700
+Subject: [PATCH] Don't return in a void function
+
+A return statement with an expression in a function returning void is
+a constraint violation.
+
+Signed-off-by: Michael Forney <mforney@mforney.org>
+---
+ src/pcm/pcm_hw.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c
+index 91370a88..4f104e5e 100644
+--- a/src/pcm/pcm_hw.c
++++ b/src/pcm/pcm_hw.c
+@@ -1171,7 +1171,7 @@ static void __fill_chmap_ctl_id(snd_ctl_elem_id_t *id, int dev, int subdev,
+ static void fill_chmap_ctl_id(snd_pcm_t *pcm, snd_ctl_elem_id_t *id)
+ {
+ snd_pcm_hw_t *hw = pcm->private_data;
+- return __fill_chmap_ctl_id(id, hw->device, hw->subdevice, pcm->stream);
++ __fill_chmap_ctl_id(id, hw->device, hw->subdevice, pcm->stream);
+ }
+
+ static int is_chmap_type(int type)
+--
+2.20.1
+