mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
99d639b9fe
commit
9c1b2e12ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue