From: Eric Bollengier Date: Thu, 14 Oct 2021 12:21:13 +0000 (+0200) Subject: Fix compilation warnings X-Git-Tag: Beta-15.0.0~824 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=394f32d00ab0955c87a13c894f4294f2a9d8c884;p=thirdparty%2Fbacula.git Fix compilation warnings --- diff --git a/bacula/src/filed/compress.h b/bacula/src/filed/compress.h index 09276d727..805bcd39e 100644 --- a/bacula/src/filed/compress.h +++ b/bacula/src/filed/compress.h @@ -33,7 +33,6 @@ const bool have_zstd = false; #endif #ifdef HAVE_LIBZ -static const char *zlib_strerror(int stat); const bool have_libz = true; #else const bool have_libz = false; diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c index 69e067665..cc1eb36ee 100644 --- a/bacula/src/filed/restore.c +++ b/bacula/src/filed/restore.c @@ -62,6 +62,10 @@ const bool have_xattr = false; /* Data received from Storage Daemon */ static char rec_header[] = "rechdr %ld %ld %ld %ld %ld"; +#ifdef HAVE_LIBZ +static const char *zlib_strerror(int stat); +#endif + /* Get have_lzo, have_zstd, ... */ #include "compress.h"