aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.cc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-12-28 16:04:47 -0500
committerDave Reisner <dreisner@archlinux.org>2014-12-29 23:24:53 -0500
commitbefcf12820411ace8d9531dc829abd20c957fe60 (patch)
treed5c2ed09799d212456b531352847db7290cb6fea /pulse.cc
parent4b8359272cebaecf403324587bcbc67003c8fdf5 (diff)
downloadmirror-ponymix-befcf12820411ace8d9531dc829abd20c957fe60.tar.gz
mirror-ponymix-befcf12820411ace8d9531dc829abd20c957fe60.tar.bz2
mirror-ponymix-befcf12820411ace8d9531dc829abd20c957fe60.zip
fix compile time warnings for unreachable code
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) {