HAL_ChibiOS: fixed gcc9 warnings

This commit is contained in:
Andrew Tridgell committed 2020-09-22 08:07:23 +10:00
1 parent fabbbea0b4
commit 90cd2a38b6
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ static void save_fault_watchdog(uint16_t line, FaultType fault_type, uint32_t fa
pd.fault_thd_prio = tp->prio;
// get first 4 bytes of the name, but only of first fault
if (tp->name && pd.thread_name4[0] == 0) {
strncpy(pd.thread_name4, tp->name, 4);
strncpy_noterm(pd.thread_name4, tp->name, 4);
}
}
pd.fault_icsr = SCB->ICSR;