From 616f1b1924e2ee70f2cc04089e894e2361e6238c Mon Sep 17 00:00:00 2001 From: Alain Spineux Date: Fri, 2 Jun 2023 12:15:17 +0200 Subject: [PATCH] tweak unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../../../plugins/fd/fd_common.h:576:17: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] --- bacula/src/plugins/fd/fd_common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bacula/src/plugins/fd/fd_common.h b/bacula/src/plugins/fd/fd_common.h index ba7940ab2..7957ad3fb 100644 --- a/bacula/src/plugins/fd/fd_common.h +++ b/bacula/src/plugins/fd/fd_common.h @@ -575,7 +575,7 @@ void joblist::prune_jobs(char *build_cmd(void *arg, const char *data, const char char curlevel; bool keep; bool ok=false; - int count=0, len; + int count=0; /* In Incremental, it means that the previous Full/Diff is well terminated */ if (level != 'I') { @@ -627,7 +627,6 @@ void joblist::prune_jobs(char *build_cmd(void *arg, const char *data, const char keep = false; datalen = 0; - len = strlen(buf); /* We don't capture the vol list, because our sscanf is limited to 1000 bytes */ if (scan_string(buf, "time=%60s level=%c key=%s name=%s root=%s prev=%s vollen=%d vol=", t, &curlevel, curkey, curjobname, rootjob, prevjob, &datalen) != 7) { -- 2.47.3