From: Alain Spineux Date: Fri, 2 Jun 2023 10:15:17 +0000 (+0200) Subject: tweak unused variable X-Git-Tag: Beta-15.0.0~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=616f1b1924e2ee70f2cc04089e894e2361e6238c;p=thirdparty%2Fbacula.git tweak unused variable ../../../plugins/fd/fd_common.h:576:17: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] --- 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) {