Browse Source

core/panic: add missing #ifdef NDEBUG

In case NDEBUG is not defined, `crash_code` is used later on
pr/spi.typo
Ludwig Knüpfer 7 years ago
parent
commit
49e76997a5
  1. 2
      core/panic.c

2
core/panic.c

@ -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) */

Loading…
Cancel
Save