[libgnome-volume-control/wip/muktupavels/warnings: 2/4] mixer-control: fix -Wswitch-enum warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-volume-control/wip/muktupavels/warnings: 2/4] mixer-control: fix -Wswitch-enum warnings
- Date: Wed, 25 Dec 2019 17:27:51 +0000 (UTC)
commit 7fe95ee894ce85220438d93fefe7006c78332956
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Dec 25 19:14:19 2019 +0200
mixer-control: fix -Wswitch-enum warnings
Warning introduced in ec5cf3e0de6715803e64b65abb059e2155b3d6de:
gvc-mixer-control.c:1457:9: warning: enumeration value ‘PA_SINK_INIT’ not handled in switch
[-Wswitch-enum]
gvc-mixer-control.c:1457:9: warning: enumeration value ‘PA_SINK_UNLINKED’ not handled in switch
[-Wswitch-enum]
gvc-mixer-control.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gvc-mixer-control.c b/gvc-mixer-control.c
index 21fc233..fd839c7 100644
--- a/gvc-mixer-control.c
+++ b/gvc-mixer-control.c
@@ -1461,7 +1461,9 @@ translate_pa_state (pa_sink_state_t state) {
return GVC_STREAM_STATE_IDLE;
case PA_SINK_SUSPENDED:
return GVC_STREAM_STATE_SUSPENDED;
+ case PA_SINK_INIT:
case PA_SINK_INVALID_STATE:
+ case PA_SINK_UNLINKED:
default:
return GVC_STREAM_STATE_INVALID;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]