From 3b927361a049c49572666df6b110922bfe9d1388 Mon Sep 17 00:00:00 2001 From: "Mytnyk, Volodymyr" Date: Tue, 7 Nov 2017 12:56:54 +0100 Subject: [PATCH] dpdkstats: Fix compilation issue. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/dpdkstat.c:128:10: error: unused variable ‘errbuf’ [-Werror=unused-variable] src/dpdkstat.c:449:10: error: unused variable ‘errbuf’ [-Werror=unused-variable] Signed-off-by: Mytnyk, Volodymyr --- src/dpdkstat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/dpdkstat.c b/src/dpdkstat.c index b8313110..134801ba 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -125,7 +125,6 @@ static int dpdk_stats_preinit(void) { int ret = dpdk_helper_init(g_shm_name, sizeof(dpdk_stats_ctx_t), &g_hc); if (ret != 0) { - char errbuf[ERR_BUF_SIZE]; ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN, g_shm_name, STRERRNO); return ret; @@ -446,7 +445,6 @@ static int dpdk_stats_reinit_helper() { int ret; ret = dpdk_helper_init(g_shm_name, data_size, &g_hc); if (ret != 0) { - char errbuf[ERR_BUF_SIZE]; ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN, g_shm_name, STRERRNO); return ret; -- 2.11.0