numam-dpdk/lib
Olivier Matz 0e985314d5 metrics: fix compilation with -Og
The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following
error:

  CC rte_metrics.o
  rte_metrics.c: In function
  ‘rte_metrics_reg_names’: rte_metrics.c:153:22: error: ‘entry’
                           may be used uninitialized in this function
                           [-Werror=maybe-uninitialized]
    entry->idx_next_set = 0;
    ~~~~~~~~~~~~~~~~~~~~^~~

This is a false positive, gcc is not able to see that we always go in
the loop at least once, initializing entry.

Fix the warning by initializing entry to NULL.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2017-10-06 02:49:50 +02:00
..
librte_acl lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_bitratestats fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cfgfile cfgfile: add section number of entries by index 2017-09-15 15:57:04 +02:00
librte_cmdline cmdline: fix compilation with -Og 2017-10-06 02:49:50 +02:00
librte_compat fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cryptodev cryptodev: fix C11 extensions in exported header 2017-08-05 01:18:21 +02:00
librte_distributor lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_eal uio: fix compilation with -Og 2017-10-06 02:49:50 +02:00
librte_efd update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_ether ethdev: add GTP items to support flow API 2017-10-06 02:49:50 +02:00
librte_eventdev eventdev: bump library version 2017-08-08 20:01:39 +02:00
librte_gro gro: fix typo in map file 2017-08-31 23:02:54 +02:00
librte_hash hash: document jhash boundary behavior 2017-10-05 23:37:52 +02:00
librte_ip_frag ip_frag: rename map file to standardized name 2017-08-31 23:02:57 +02:00
librte_jobstats jobstats: fix typo in doxygen comment 2017-07-20 00:40:27 +03:00
librte_kni kni: allocate no more mbuf than empty slots in queue 2017-07-01 12:54:51 +02:00
librte_kvargs mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_latencystats latency: fix missing includes in exported header 2017-05-01 00:13:15 +02:00
librte_lpm lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_mbuf mbuf: support GTP in software packet type parser 2017-10-06 02:49:50 +02:00
librte_mempool mem: do not advertise physical address when no hugepages 2017-07-04 17:51:22 +02:00
librte_meter mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_metrics metrics: fix compilation with -Og 2017-10-06 02:49:50 +02:00
librte_net net: fix inner L2 length in packet type parser 2017-10-05 23:34:45 +02:00
librte_pdump pdump: remove unnecessary header include 2017-06-14 23:45:51 +02:00
librte_pipeline mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
librte_port eal: introduce macro for always inline 2017-06-06 17:21:55 +02:00
librte_power power: add turbo functions to map file 2017-10-03 10:46:12 +02:00
librte_reorder fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_ring ring: increase maximum ring size 2017-10-05 23:23:12 +02:00
librte_sched sched: remove check for SSE4 2017-07-04 14:39:18 +02:00
librte_table update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_timer lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_vhost vhost: make page logging atomic 2017-08-03 22:09:48 +02:00
Makefile lib/gro: add Generic Receive Offload API framework 2017-07-09 18:14:46 +02:00