diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-12-28 16:04:47 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-12-29 23:24:53 -0500 |
commit | befcf12820411ace8d9531dc829abd20c957fe60 (patch) | |
tree | d5c2ed09799d212456b531352847db7290cb6fea /pulse.cc | |
parent | 4b8359272cebaecf403324587bcbc67003c8fdf5 (diff) | |
download | mirror-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.cc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |