From befcf12820411ace8d9531dc829abd20c957fe60 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 28 Dec 2014 16:04:47 -0500 Subject: fix compile time warnings for unreachable code --- pulse.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pulse.cc') 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& PulseClient::GetDevices(enum DeviceType type) const { @@ -218,6 +222,8 @@ const vector& PulseClient::GetDevices(enum DeviceType type) const { case DEVTYPE_SOURCE_OUTPUT: return GetSourceOutputs(); } + + throw unreachable(); } Device* PulseClient::GetSink(const uint32_t index) { -- cgit v1.2.3