aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-03 21:34:17 +0200
committerMax Kellermann <max@duempel.org>2013-08-03 21:34:17 +0200
commit67f591a9ce60651da41afc499bd9a22e25314e35 (patch)
tree0eeeba50880b52317f326c73587a7cb4a5c93b32 /src/output
parent105b431e4cd5416b44ed3fb68e5944ad59bd8221 (diff)
downloadmpd-67f591a9ce60651da41afc499bd9a22e25314e35.tar.gz
mpd-67f591a9ce60651da41afc499bd9a22e25314e35.tar.xz
mpd-67f591a9ce60651da41afc499bd9a22e25314e35.zip
gcc.h: add macro gcc_unreachable()
Diffstat (limited to 'src/output')
-rw-r--r--src/output/AlsaOutputPlugin.cxx2
-rw-r--r--src/output/JackOutputPlugin.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/output/AlsaOutputPlugin.cxx b/src/output/AlsaOutputPlugin.cxx
index 17fc91d1a..7d0e9e09c 100644
--- a/src/output/AlsaOutputPlugin.cxx
+++ b/src/output/AlsaOutputPlugin.cxx
@@ -257,7 +257,7 @@ get_bitformat(enum sample_format sample_format)
}
assert(false);
- return SND_PCM_FORMAT_UNKNOWN;
+ gcc_unreachable();
}
static snd_pcm_format_t
diff --git a/src/output/JackOutputPlugin.cxx b/src/output/JackOutputPlugin.cxx
index 3bc9cee8f..4f21b36f8 100644
--- a/src/output/JackOutputPlugin.cxx
+++ b/src/output/JackOutputPlugin.cxx
@@ -696,6 +696,7 @@ mpd_jack_write_samples(JackOutput *jd, const void *src,
default:
assert(false);
+ gcc_unreachable();
}
}