]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation warnings
authorEric Bollengier <eric@baculasystems.com>
Thu, 14 Oct 2021 12:21:13 +0000 (14:21 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/src/filed/compress.h
bacula/src/filed/restore.c

index 09276d72743115113041d9e1bed2239762e43858..805bcd39ecfd4c900c13fae1c020b0d4b83947a7 100644 (file)
@@ -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;
index 69e067665878ff9d3ef1e2af389c088d8d5e82a3..cc1eb36eec5295dd40213e7db265869c7efc70d3 100644 (file)
@@ -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"