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

xiaoxiang781216 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 9c1b2e12ce0 tools:mksyscall fix compilation warning
9c1b2e12ce0 is described below

commit 9c1b2e12ce0c4b4ae744ef722323644892f36901
Author: Serg Podtynnyi <[email protected]>
AuthorDate: Fri May 8 14:34:08 2026 +0700

    tools:mksyscall fix compilation warning
    
    mksyscall.c:145:19: warning: initialization discards ‘const’ qualifier
    from pointer target type [-Wdiscarded-qualifiers]
      145 |   char *pactual = strchr(arg, '|');
          |                   ^~~~~~
    Change to use const char* on pointers
    
    Signed-off-by: Serg Podtynnyi <[email protected]>
---
 tools/mksyscall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/mksyscall.c b/tools/mksyscall.c
index 953c132f2e1..91feb4a3894 100644
--- a/tools/mksyscall.c
+++ b/tools/mksyscall.c
@@ -142,8 +142,8 @@ static void get_actualparmtype(const char *arg, char 
*actual)
 
 static void get_fieldname(const char *arg, char *fieldname)
 {
-  char *pactual = strchr(arg, '|');
-  char *pstart;
+  const char *pactual = strchr(arg, '|');
+  const char *pstart;
 
   if (pactual)
     {

Reply via email to