1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/panic: add missing #ifdef NDEBUG

In case NDEBUG is not defined, `crash_code` is used later on
This commit is contained in:
Ludwig Knüpfer 2016-07-26 12:43:25 +02:00
parent d639f0b9a3
commit 49e76997a5

View File

@ -46,7 +46,9 @@ static int crashed = 0;
/* WARNING: this function NEVER returns! */
NORETURN void core_panic(core_panic_t crash_code, const char *message)
{
#ifdef NDEBUG
(void) crash_code;
#endif
if (crashed == 0) {
/* print panic message to console (if possible) */