Skip to content

Commit 67a6fe9

Browse files
nordic-krchfabiobaltieri
authored andcommitted
arch: riscv: Add ARG_UNUSED to the unused argument
When compiler is more strict it triggers a warning that 'swap' argument is not used in arch_isr_direct_footer(). Adding ARG_UNUSED. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent 3a9c825 commit 67a6fe9

File tree

1 file changed

+1
-0
lines changed
  • include/zephyr/arch/riscv

1 file changed

+1
-0
lines changed

include/zephyr/arch/riscv/irq.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ extern void __soc_handle_irq(unsigned long mcause);
6969

7070
static inline void arch_isr_direct_footer(int swap)
7171
{
72+
ARG_UNUSED(swap);
7273
unsigned long mcause;
7374

7475
/* Get the IRQ number */

0 commit comments

Comments
 (0)