Code cleanup: srand, PVS warnings (#1974)

* Remove srand invocation

* PVS High priority fixes

* PVS High errors part 2

* Furi: heap tracing inheritance

* Furi add __builtin_unreachable to furi_thread_catch
This commit is contained in:
あく
2022-11-06 00:07:24 +09:00
committed by GitHub
parent 04e50c9f89
commit e8913f2e33
37 changed files with 76 additions and 85 deletions

View File

@@ -46,7 +46,7 @@ FURI_NORETURN void __furi_halt();
/** Check condition and crash if check failed */
#define furi_check(__e) \
do { \
if((__e) == 0) { \
if(!(__e)) { \
furi_crash("furi_check failed\r\n"); \
} \
} while(0)
@@ -55,7 +55,7 @@ FURI_NORETURN void __furi_halt();
#ifdef FURI_DEBUG
#define furi_assert(__e) \
do { \
if((__e) == 0) { \
if(!(__e)) { \
furi_crash("furi_assert failed\r\n"); \
} \
} while(0)