This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b81689f2c Appease a GCC warning
8b81689f2c is described below

commit 8b81689f2c68c6d647687eb6f5986779982b49d9
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Fri Sep 6 13:05:37 2024 +0900

    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);
          |                        ^~~~~~~~~~~~
    ```
---
 arch/xtensa/src/common/xtensa_swint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_swint.c 
b/arch/xtensa/src/common/xtensa_swint.c
index 3241c10472..e8d482c1c8 100644
--- a/arch/xtensa/src/common/xtensa_swint.c
+++ b/arch/xtensa/src/common/xtensa_swint.c
@@ -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
     {

Reply via email to