From: Mytnyk, Volodymyr Date: Tue, 7 Nov 2017 11:56:54 +0000 (+0100) Subject: dpdkstats: Fix compilation issue. X-Git-Tag: collectd-5.9.0~344^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2524%2Fhead;p=thirdparty%2Fcollectd.git 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 b83131102..134801baa 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;