From: Mytnyk, Volodymyr Date: Tue, 7 Nov 2017 11:56:54 +0000 (+0100) Subject: dpdkstats: Fix compilation issue. X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=3b927361a049c49572666df6b110922bfe9d1388 dpdkstats: Fix compilation issue. 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 --- 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;