Skip to content

Commit

Permalink
Use noexcept version of fs::remove
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Dec 16, 2024
1 parent 5e11e1e commit 4278033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oc/hoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,8 @@ void hoc_final_exit(void) {
auto tmp_dir = std::getenv("TEMP");
auto path = std::filesystem::path(tmp_dir ? std::string(tmp_dir) : "/tmp") /
fmt::format("oc{}.hl", hoc_pid());
std::filesystem::remove(path);
std::error_code ec;
std::filesystem::remove(path, ec);
}

void hoc_quit(void) {
Expand Down

0 comments on commit 4278033

Please sign in to comment.