aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.h
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.h
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.h')
-rw-r--r--pulse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pulse.h b/pulse.h
index 55b07c3..32dfe25 100644
--- a/pulse.h
+++ b/pulse.h
@@ -7,6 +7,7 @@
// C++
#include <memory>
+#include <stdexcept>
#include <string>
#include <vector>
@@ -260,4 +261,13 @@ class PulseClient {
unique_ptr<Notifier> notifier_;
};
+class unreachable : public std::runtime_error {
+ public:
+ unreachable() throw() :
+ std::runtime_error("unreachable code path encountered") {}
+
+ unreachable(const std::string& message) throw() :
+ std::runtime_error(message) {}
+};
+
// vim: set et ts=2 sw=2: