* [dpdk-dev] [PATCH] examples/multi_process: remove set but unused variable
@ 2017-05-25 15:46 Andrew Rybchenko
2017-06-05 15:52 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Rybchenko @ 2017-05-25 15:46 UTC (permalink / raw)
To: dev; +Cc: Sergio Gonzalez Monroy
Fix broken build with -Werror=unused-but-set-variable
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
examples/multi_process/l2fwd_fork/main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c
index d922522..59c1024 100644
--- a/examples/multi_process/l2fwd_fork/main.c
+++ b/examples/multi_process/l2fwd_fork/main.c
@@ -937,7 +937,6 @@ main(int argc, char **argv)
unsigned rx_lcore_id;
unsigned nb_ports_in_mask = 0;
unsigned i;
- int flags = 0;
uint64_t prev_tsc, diff_tsc, cur_tsc, timer_tsc;
/* Save cpu_affinity first, restore it in case it's floating process option */
@@ -987,7 +986,6 @@ main(int argc, char **argv)
if ((l2fwd_enabled_port_mask & (1 << portid)) == 0)
continue;
char buf_name[RTE_MEMPOOL_NAMESIZE];
- flags = MEMPOOL_F_SP_PUT | MEMPOOL_F_SC_GET;
snprintf(buf_name, RTE_MEMPOOL_NAMESIZE, MBUF_NAME, portid);
l2fwd_pktmbuf_pool[portid] =
rte_pktmbuf_pool_create(buf_name, NB_MBUF, 32,
--
2.9.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-05 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 15:46 [dpdk-dev] [PATCH] examples/multi_process: remove set but unused variable Andrew Rybchenko
2017-06-05 15:52 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).