Skip to content
Snippets Groups Projects
Commit 49e76997 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

core/panic: add missing #ifdef NDEBUG

In case NDEBUG is not defined, `crash_code` is used later on
parent d639f0b9
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,9 @@ static int crashed = 0; ...@@ -46,7 +46,9 @@ static int crashed = 0;
/* WARNING: this function NEVER returns! */ /* WARNING: this function NEVER returns! */
NORETURN void core_panic(core_panic_t crash_code, const char *message) NORETURN void core_panic(core_panic_t crash_code, const char *message)
{ {
#ifdef NDEBUG
(void) crash_code; (void) crash_code;
#endif
if (crashed == 0) { if (crashed == 0) {
/* print panic message to console (if possible) */ /* print panic message to console (if possible) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment