M core/pch.h +1 -1
@@ 20,7 20,7 @@
#define LIKELY(x) __builtin_expect((x),1)
#define UNLIKELY(x) __builtin_expect((x),0)
#define forceinline inline __attribute__((always_inline))
- #define UNREACHABLE_CODE(x)
+ #define UNREACHABLE_CODE(x) __builtin_unreachable()
#elif defined(_MSC_VER)
#define LIKELY(x) x
#define UNLIKELY(x) x
M jasm/pch.h +1 -1
@@ 20,7 20,7 @@
#define LIKELY(x) __builtin_expect((x),1)
#define UNLIKELY(x) __builtin_expect((x),0)
#define forceinline inline __attribute__((always_inline))
- #define UNREACHABLE_CODE(x)
+ #define UNREACHABLE_CODE(x) __builtin_unreachable()
#define SINGLE_INHERITANCE
#elif defined(_MSC_VER)
#define LIKELY(x) x
M jasm/processor/processor.cpp +1 -0
@@ 200,6 200,7 @@ const Processor *ProcessorCatalogue::pro
case ProcessorType::Zilog80:
return _z80.get();
}
+ UNREACHABLE_CODE(throw Exception("internal error"));
}
}