aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
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/pcm
parent105b431e4cd5416b44ed3fb68e5944ad59bd8221 (diff)
downloadmpd-67f591a9ce60651da41afc499bd9a22e25314e35.tar.gz
mpd-67f591a9ce60651da41afc499bd9a22e25314e35.tar.xz
mpd-67f591a9ce60651da41afc499bd9a22e25314e35.zip
gcc.h: add macro gcc_unreachable()
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/PcmMix.cxx6
-rw-r--r--src/pcm/PcmVolume.cxx3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/pcm/PcmMix.cxx b/src/pcm/PcmMix.cxx
index 8435c0c2a..b92258a83 100644
--- a/src/pcm/PcmMix.cxx
+++ b/src/pcm/PcmMix.cxx
@@ -110,9 +110,8 @@ pcm_add_vol(void *buffer1, const void *buffer2, size_t size,
return true;
}
- /* unreachable */
assert(false);
- return false;
+ gcc_unreachable();
}
template<typename T, typename U, unsigned bits>
@@ -184,9 +183,8 @@ pcm_add(void *buffer1, const void *buffer2, size_t size,
return true;
}
- /* unreachable */
assert(false);
- return false;
+ gcc_unreachable();
}
bool
diff --git a/src/pcm/PcmVolume.cxx b/src/pcm/PcmVolume.cxx
index 556ab9925..c22017ddd 100644
--- a/src/pcm/PcmVolume.cxx
+++ b/src/pcm/PcmVolume.cxx
@@ -188,7 +188,6 @@ pcm_volume(void *buffer, size_t length,
return true;
}
- /* unreachable */
assert(false);
- return false;
+ gcc_unreachable();
}