mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 07:35:07 +08:00
libc/strptime: fix warning unused-value
warning: value computed is not used [-Wunused-value] Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -413,8 +413,8 @@ _conv_num(const unsigned char **buf, int *dest, int llim, int ulim)
|
||||
int result = 0;
|
||||
int rulim = ulim;
|
||||
|
||||
while (ispace(**buf))
|
||||
*buf++;
|
||||
while (isspace(**buf))
|
||||
(*buf)++;
|
||||
|
||||
if (**buf < '0' || **buf > '9')
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user