aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/volume.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/volume.c b/src/volume.c
index 3df57ad46..9b1032294 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -190,9 +190,12 @@ int volume_level_get(void)
return software_volume_get();
case VOLUME_MIXER_TYPE_HARDWARE:
return hardware_volume_get();
- default:
+ case VOLUME_MIXER_TYPE_DISABLED:
return -1;
}
+
+ /* unreachable */
+ assert(false);
return -1;
}