MemFault: supress warning about unused faultAddress (#205)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-02-17 14:43:21 -05:00 committed by GitHub
parent df5d7ed4cd
commit d8b8ba7019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ extern "C" void MemManage_Handler_C(void* sp) {
#if (__CORTEX_M > 0)
//For HardFault/BusFault this is the address that was accessed causing the error
uint32_t faultAddress = SCB->MMFAR;
(void)faultAddress;
//Flags about hardfault / busfault
//See http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/Cihdjcfc.html for reference