Browse Source

解决 function declared with "noreturn" does return 警告

zhyolo 2 years ago
parent
commit
baec6f6306
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ports/rt-thread/qf_hooks.c

+ 1 - 0
ports/rt-thread/qf_hooks.c

@@ -20,4 +20,5 @@ void QF_onCleanup(void) {
 
 void Q_onAssert(char const * const module, int loc) {
     rt_assert_handler(module, "", loc);
+    while(1);
 }