numam-dpdk/lib/librte_cmdline
Olivier Matz 1123f16eb3 cmdline: fix compilation with -Og
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>
2017-10-06 02:49:50 +02:00
..
cmdline_cirbuf.c lib: fix whitespace 2015-06-12 11:10:10 +02:00
cmdline_cirbuf.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
cmdline_parse_etheraddr.c lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
cmdline_parse_etheraddr.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_ipaddr.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_parse_ipaddr.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_num.c lib: add switch fall-through comments 2017-05-05 18:36:55 +02:00
cmdline_parse_num.h cmdline: fix missing include 2016-03-04 15:31:16 +01:00
cmdline_parse_portlist.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_parse_portlist.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
cmdline_parse_string.c cmdline: add any multi string mode to token string 2016-05-02 15:31:16 +02:00
cmdline_parse_string.h cmdline: add any multi string mode to token string 2016-05-02 15:31:16 +02:00
cmdline_parse.c cmdline: fix compilation with -Og 2017-10-06 02:49:50 +02:00
cmdline_parse.h cmdline: fix dynamic tokens interface 2017-07-21 01:03:25 +03:00
cmdline_rdline.c lib: fix whitespace 2015-06-12 11:10:10 +02:00
cmdline_rdline.h cmdline: increase command line buffer 2016-03-03 20:39:47 +01:00
cmdline_socket.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
cmdline_socket.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
cmdline_vt100.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
cmdline_vt100.h cmdline: fix missing includes 2015-05-18 13:10:48 +02:00
cmdline.c cmdline: fix warning for unused return value 2017-10-05 18:36:07 +02:00
cmdline.h lib: add missing include dependencies 2016-09-13 15:35:28 +02:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_cmdline_version.map cmdline: remove duplicated symbol from .map 2016-06-30 20:02:52 +02:00