summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-11-09 16:45:32 +0100
committerPeter Meerwald <p.meerwald@bct-electronic.com>2014-11-17 13:24:38 +0100
commit094de7f02404c8eaed75dfccc4d2febd7d64484a (patch)
tree4b8d836598f6100871e0774cd5b20f20dcf4e0b9
parent64f3b5711bc090e06ee40fe12cac55acde3af5f2 (diff)
macro: Abort() when pa_assert_not_reached() even for NDEBUG
fixes many warnings when compiling with NDEBUG, such as CC pulse/libpulse_la-channelmap.lo pulse/channelmap.c: In function 'pa_channel_map_init_auto': pulse/channelmap.c:397:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
-rw-r--r--src/pulsecore/macro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h
index 4d5e80f4e..e36b6ce82 100644
--- a/src/pulsecore/macro.h
+++ b/src/pulsecore/macro.h
@@ -231,7 +231,7 @@ static inline size_t PA_PAGE_ALIGN(size_t l) {
#endif
#ifdef NDEBUG
-#define pa_assert_not_reached() pa_nop()
+#define pa_assert_not_reached() abort()
#else
#define pa_assert_not_reached() \
do { \