aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pulse.cc')
-rw-r--r--pulse.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/pulse.cc b/pulse.cc
index 5bae79a..64bef66 100644
--- a/pulse.cc
+++ b/pulse.cc
@@ -192,6 +192,8 @@ Device* PulseClient::GetDevice(const uint32_t index, enum DeviceType type) {
case DEVTYPE_SOURCE_OUTPUT:
return GetSourceOutput(index);
}
+
+ throw unreachable();
}
Device* PulseClient::GetDevice(const string& name, enum DeviceType type) {
@@ -205,6 +207,8 @@ Device* PulseClient::GetDevice(const string& name, enum DeviceType type) {
case DEVTYPE_SOURCE_OUTPUT:
return GetSourceOutput(name);
}
+
+ throw unreachable();
}
const vector<Device>& PulseClient::GetDevices(enum DeviceType type) const {
@@ -218,6 +222,8 @@ const vector<Device>& PulseClient::GetDevices(enum DeviceType type) const {
case DEVTYPE_SOURCE_OUTPUT:
return GetSourceOutputs();
}
+
+ throw unreachable();
}
Device* PulseClient::GetSink(const uint32_t index) {