arm: Remove unused parameter warning

This patch fixes the unused parameter warning found at the
arch/arm/core/fault.c and arch/arm/soc/st_stm32/stm32f1/soc_gpio.c
files.

Change-Id: I5b3013c1514cff30f4e98feb31169fb28546c534
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
Flavio Santes 2016-12-02 18:24:54 -06:00 committed by Anas Nashif
commit cf09370d4e
2 changed files with 6 additions and 0 deletions

View file

@ -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);

View file

@ -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;