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;