Skip to content

Commit

Permalink
fs: Avoid an unused variable warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
irydacea committed Nov 5, 2019
1 parent cd407be commit b24f755
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/filesystem.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b24f755

Please sign in to comment.