qemu/compiler.h: Assert in unreachable check in debug builds

This commit is contained in:
Matt Borgerson 2022-02-02 00:30:33 -07:00 committed by mborgerson
parent 5f14ee4a68
commit 758e36d398
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@
*/
extern void QEMU_NORETURN QEMU_ERROR("code path is reachable")
qemu_build_not_reached_always(void);
#if defined(__OPTIMIZE__) && !defined(__NO_INLINE__)
#if defined(__OPTIMIZE__) && !defined(__NO_INLINE__) && !defined(XEMU_DEBUG_BUILD)
#define qemu_build_not_reached() qemu_build_not_reached_always()
#else
#define qemu_build_not_reached() g_assert_not_reached()