mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
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 <serg@podtynnyi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
99d639b9fe
commit
9c1b2e12ce
+2
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user