From d8b8ba70193b587ac2b239978f30d95e2f7c4f1f Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Fri, 17 Feb 2023 14:43:21 -0500 Subject: [PATCH] MemFault: supress warning about unused faultAddress (#205) Co-authored-by: Andrey Gusakov --- firmware/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/main.cpp b/firmware/main.cpp index 3262cfc..031d92f 100644 --- a/firmware/main.cpp +++ b/firmware/main.cpp @@ -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