From 4278033d222d5811480664723a2d1497f66fa7af Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Mon, 16 Dec 2024 10:29:07 +0100 Subject: [PATCH] Use `noexcept` version of `fs::remove` --- src/oc/hoc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oc/hoc.cpp b/src/oc/hoc.cpp index fc8f20c953..6b8545a5c4 100644 --- a/src/oc/hoc.cpp +++ b/src/oc/hoc.cpp @@ -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) {