Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Storz <philipp.storz@bareos.com>2022-11-05 18:38:19 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2022-11-11 22:26:08 +0300
commit2dc0b98898905dd0b5c955d3a77374580edef939 (patch)
tree7907ee7eec1fba445aac006c3e7284b603cd2cdd
parent33fa9ed2bafb6a7c31e9af800c2d37f272e198fc (diff)
windows: fix RestoreFileAttributes() with maybe_unused
-rw-r--r--core/src/findlib/attribs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/findlib/attribs.cc b/core/src/findlib/attribs.cc
index 5f20c085b..024899b12 100644
--- a/core/src/findlib/attribs.cc
+++ b/core/src/findlib/attribs.cc
@@ -188,7 +188,7 @@ int SelectDataStream(FindFilesPacket* ff_pkt, bool compatible)
// Restore all file attributes like owner, mode and file times.
static inline bool RestoreFileAttributes(JobControlRecord* jcr,
Attributes* attr,
- BareosFilePacket* ofd)
+ [[maybe_unused]] BareosFilePacket* ofd)
{
bool ok = true;
bool suppress_errors;