Fix compiler warnings (#6023)

This commit is contained in:
Tangyuxin
2022-06-08 01:21:50 +08:00
committed by GitHub
parent 2d62a95339
commit f5c88add37
4 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -1066,7 +1066,8 @@ int netdev_cmd_ping(char* target_name, char *netdev_name, rt_uint32_t times, rt_
struct netdev *netdev = RT_NULL;
struct netdev_ping_resp ping_resp;
int index, ret = 0;
rt_uint32_t index;
int ret = 0;
if (size == 0)
{