Skip to content

Commit

Permalink
core: stm32_etzpc: fix remaining build warning
Browse files Browse the repository at this point in the history
Correct build warnings reported from the GCC traces below.
  core/drivers/stm32_etzpc.c:106:13: warning: ‘valid_decprot_id’ defined but not used [-Wunused-function]
   static bool valid_decprot_id(unsigned int id)

Fixes commit 54ca183 ("core: stm32_etzpc: fix build warnings") that
missed a warning occurrence.

Change-Id: Iacfd527dabf25ea02fd9a3c5e423441594aa31ec
Signed-off-by: Etienne Carriere <[email protected]>
Reviewed-on: https://gerrit.st.com/126679
Reviewed-by: CITOOLS <[email protected]>
Reviewed-by: Lionel DEBIEVE <[email protected]>
Tested-by: Lionel DEBIEVE <[email protected]>
  • Loading branch information
etienne-lms committed Feb 28, 2019
1 parent 708819d commit f42e00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/drivers/stm32_etzpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static uintptr_t etzpc_base(void)
return etzpc_dev.base;
}

static bool valid_decprot_id(unsigned int id)
static bool __maybe_unused valid_decprot_id(unsigned int id)
{
return id < (unsigned int)etzpc_dev.num_per_sec;
}
Expand Down

0 comments on commit f42e00f

Please sign in to comment.