mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-25 07:27:16 +00:00
Fix bas_program.c build warning under macos
bas_program.c:234:35: error: adding 'size_t' (aka 'unsigned long') to a string does not append to the string [-Werror,-Wstring-plus-int]
FS_putChars(chn, " " + len);
~~~~~~~~~~~^~~~~
bas_program.c:234:35: note: use array indexing to silence this warning
FS_putChars(chn, " " + len);
^
& [ ]
1 error generated.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
1b572ff169
commit
5a29e86847
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ static void printName(const void *k, struct Program *p, int chn)
|
|||
FS_putChars(chn, (const char *)k);
|
||||
if (len < 8)
|
||||
{
|
||||
FS_putChars(chn, " " + len);
|
||||
FS_putChars(chn, &(" "[len]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue