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:
parent
d639f0b9a3
commit
49e76997a5
@ -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…
Reference in New Issue
Block a user