From b24f755c28fd3d2a575f399caf8c18759d26e158 Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Tue, 5 Nov 2019 12:15:34 -0300 Subject: [PATCH] fs: Avoid an unused variable warning This is very configuration-specific and only seems to happen on Windows at the moment, which is kind of intentional from what when I discussed the code with josteph. --- src/filesystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/filesystem.cpp b/src/filesystem.cpp index f5df5f3151b0..d58c74f5fb38 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -611,6 +611,9 @@ static bool is_path_relative_to_cwd(const std::string& str) void set_user_data_dir(std::string newprefdir) { bool relative_ok = false; + // Not always but it can be unused in some configurations + UNUSED(relative_ok); + #ifdef PREFERENCES_DIR if(newprefdir.empty()) { newprefdir = PREFERENCES_DIR;