Commit eb855269 authored by Zhang Shengju's avatar Zhang Shengju Committed by Stephen Hemminger

ip-link: remove warning message

the warning was:
iproute.c:301:12: warning: 'val' may be used uninitialized in this
function [-Wmaybe-uninitialized]
   features &= ~RTAX_FEATURE_ECN;
            ^
iproute.c:575:10: note: 'val' was declared here
   __u32 val;
	  ^
Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
parent 62392ecb
......@@ -572,7 +572,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
mxlock = *(unsigned*)RTA_DATA(mxrta[RTAX_LOCK]);
for (i=2; i<= RTAX_MAX; i++) {
__u32 val;
__u32 val = 0U;
if (mxrta[i] == NULL)
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment