diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 41df829fd..baaaab576 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -493,7 +493,10 @@ string V3Options::fileExists(const string& filename) { try { for (const auto& dirEntry : std::filesystem::directory_iterator(dir.c_str())) setp->insert(dirEntry.path().filename().string()); - } catch (std::filesystem::filesystem_error const& ex) { (void)ex; return ""; } + } catch (std::filesystem::filesystem_error const& ex) { + (void)ex; + return ""; + } #else if (DIR* const dirp = opendir(dir.c_str())) { while (struct dirent* direntp = readdir(dirp)) setp->insert(direntp->d_name);