Skip to content

Commit 8b81689

Browse files
yamtpkarashchenko
authored andcommitted
Appease a GCC warning
``` 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); | ^~~~~~~~~~~~ ```
1 parent ae59641 commit 8b81689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/src/common/xtensa_swint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ int xtensa_swint(int irq, void *context, void *arg)
432432
if (regs != CURRENT_REGS)
433433
{
434434
svcinfo("SYSCALL Return: Context switch!\n");
435-
up_dump_register(CURRENT_REGS);
435+
up_dump_register((void *)CURRENT_REGS);
436436
}
437437
else
438438
{

0 commit comments

Comments
 (0)