1123f16eb3
The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following error: CC cmdline_parse.o cmdline_parse.c: In function ‘match_inst’: cmdline_parse.c:227:5: error: ‘token_p’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (token_p) { ^ This is a false positive, gcc is not able to see that we always go in the loop at least once, initializing token_p. Fix the warning by initializing token_p to NULL. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> |
||
---|---|---|
.. | ||
cmdline_cirbuf.c | ||
cmdline_cirbuf.h | ||
cmdline_parse_etheraddr.c | ||
cmdline_parse_etheraddr.h | ||
cmdline_parse_ipaddr.c | ||
cmdline_parse_ipaddr.h | ||
cmdline_parse_num.c | ||
cmdline_parse_num.h | ||
cmdline_parse_portlist.c | ||
cmdline_parse_portlist.h | ||
cmdline_parse_string.c | ||
cmdline_parse_string.h | ||
cmdline_parse.c | ||
cmdline_parse.h | ||
cmdline_rdline.c | ||
cmdline_rdline.h | ||
cmdline_socket.c | ||
cmdline_socket.h | ||
cmdline_vt100.c | ||
cmdline_vt100.h | ||
cmdline.c | ||
cmdline.h | ||
Makefile | ||
rte_cmdline_version.map |