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.h | |
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.h')
-rw-r--r-- | pulse.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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: |