examples/qos_sched: suppress gcc 7.1.1 warning
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 2 Jun 2017 11:20:30 +0000 (16:50 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Jun 2017 12:27:01 +0000 (14:27 +0200)
commit35f30466d65ebe8926720b30c9ed82c7142a9cae
treecaa9f224204c52bd7ecfef5eb34ec27b1effe22e
parent1122ba9aa12a29cc01f32983ff2b4dedce1837cd
examples/qos_sched: suppress gcc 7.1.1 warning

This one is more of a compiler issue as application
checks the app_parse_opt_vals() return value.

Since this code is in slow path, adding a memset
to fix following "maybe-uninitialized" warning.

qos_sched/args.c: In function ‘app_parse_args’:
examples/qos_sched/args.c:254:32: error: ‘vals[0]’ may be
used uninitialized in this function [-Werror=maybe-uninitialized]
pconf->rx_port = (uint8_t)vals[0];
                            ~~~~^~~

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/qos_sched/args.c