diff --git a/arch/arm/core/fault.c b/arch/arm/core/fault.c index 9dab730296f..7969d816ac6 100644 --- a/arch/arm/core/fault.c +++ b/arch/arm/core/fault.c @@ -239,6 +239,8 @@ static void _UsageFault(const NANO_ESF *esf) */ static void _DebugMonitor(const NANO_ESF *esf) { + ARG_UNUSED(esf); + PR_EXC("***** Debug monitor exception (not implemented) *****\n"); } @@ -284,6 +286,8 @@ static void _HardFault(const NANO_ESF *esf) */ static void _ReservedException(const NANO_ESF *esf, int fault) { + ARG_UNUSED(esf); + PR_EXC("***** %s %d) *****\n", fault < 16 ? "Reserved Exception (" : "Spurious interrupt (IRQ ", fault - 16); diff --git a/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c b/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c index c9e461e8ac2..37acf4bc7ec 100644 --- a/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c +++ b/arch/arm/soc/st_stm32/stm32f1/soc_gpio.c @@ -119,6 +119,8 @@ int stm32_gpio_configure(uint32_t *base_addr, int pin, int conf, int altf) */ volatile uint32_t *reg = &gpio->crl; + ARG_UNUSED(altf); + if (crpin > 7) { reg = &gpio->crh; crpin -= 8;