From: Eric Bollengier Date: Tue, 18 Jan 2022 15:36:22 +0000 (+0100) Subject: Fix compilation warning X-Git-Tag: Beta-15.0.0~671 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33d38a9a2b1e947a52ee9254125cb9f1a8f25fef;p=thirdparty%2Fbacula.git Fix compilation warning --- diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index 477532aa7..69e25a9e9 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -1196,7 +1196,6 @@ void gdb_traceback() snprintf(syscom, sizeof(syscom), "gdb --batch -n -ex \"thread apply all bt\" %s %d", name_buf, getpid()); bpipe = open_bpipe(syscom, 0, "r"); if (bpipe) { - bool ok = false; char buf[1000]; while (fgets(buf, sizeof(buf), bpipe->rfd)) { Pmsg1(000, " %s", buf); diff --git a/bacula/src/plugins/fd/test-plugin-fd.c b/bacula/src/plugins/fd/test-plugin-fd.c index beaf22efd..c506bbbf5 100644 --- a/bacula/src/plugins/fd/test-plugin-fd.c +++ b/bacula/src/plugins/fd/test-plugin-fd.c @@ -761,7 +761,7 @@ static bRC startBackupFile(bpContext *ctx, struct save_pkt *sp) p_ctx->nb_obj++; sp->type = FT_REG; - sp->fname = "/@size_update_file@"; + sp->fname = (char *)"/@size_update_file@"; sp->statp.st_mode = 0640; sp->statp.st_ctime = now; sp->statp.st_mtime = now; @@ -777,7 +777,7 @@ static bRC startBackupFile(bpContext *ctx, struct save_pkt *sp) p_ctx->nb_obj++; sp->type = FT_REG; - sp->fname = "/@size_update_file@"; + sp->fname = (char *)"/@size_update_file@"; sp->stat_update = true; /* File attributes should be updated */ sp->statp.st_size = 666; /* Update size */ sp->statp.st_mode = 0777; /* Update perissions */