]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
tweak unused variable
authorAlain Spineux <alain@baculasystems.com>
Fri, 2 Jun 2023 10:15:17 +0000 (12:15 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
../../../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

index ba7940ab258a571afc802b6d0cfff6421a6ceccc..7957ad3fb64ad19cbc9adbfbfbdef25243c565ec 100644 (file)
@@ -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) {