From 5ebc85e705049983095e50d02577c4e39aad77fa Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 27 Jul 2017 12:09:15 +0000 Subject: ndpiReader.c: fix variable ‘fileName’ set but not used [-Werror=unused-but-set-variable] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ndpiReader.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index e6281b617..189321968 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2285,7 +2285,6 @@ void automataUnitTest() { void bpf_filter_produce_filter(int port_array[], int p_size, const char *host_array[48], int h_size, char *filePath) { FILE *fp = NULL; char _filterFilePath[1024]; - char *fileName; char filter[2048]; int produced = 0; int i = 0; @@ -2337,7 +2336,6 @@ void bpf_filter_produce_filter(int port_array[], int p_size, const char *host_ar produced = 1; } - fileName = basename(filePath); snprintf(_filterFilePath, sizeof(_filterFilePath), "%s.bpf", filePath); if((fp = fopen(_filterFilePath,"w")) == NULL) { -- cgit v1.2.3