Skip to content

Commit

Permalink
Appease a GCC warning
Browse files Browse the repository at this point in the history
```
common/xtensa_swint.c:442:24: error: passing argument 1 of 'up_dump_register' discards 'volatile' qualifier from pointer target type [-Werror=discarded-qualifiers]
  442 |       up_dump_register(CURRENT_REGS);
      |                        ^~~~~~~~~~~~
```
  • Loading branch information
yamt committed Sep 6, 2024
1 parent 608b59e commit 74adb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/src/common/xtensa_swint.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ int xtensa_swint(int irq, void *context, void *arg)
if (regs != CURRENT_REGS)
{
svcinfo("SYSCALL Return: Context switch!\n");
up_dump_register(CURRENT_REGS);
up_dump_register((void *)CURRENT_REGS);
}
else
{
Expand Down

0 comments on commit 74adb2a

Please sign in to comment.