From c74b625aaa46db85797a691c81f129834c7fd82e Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 10 Mar 2020 19:51:39 +0100 Subject: [PATCH] Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile No need to remove via another temporary file. --- src/ccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccache.c b/src/ccache.c index 0ac018d8f..6e9da51c2 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -1156,7 +1156,7 @@ out: } if (!result) { cc_log("Removing temporary dependency file: %s", tmp_file); - x_unlink(tmp_file); + tmp_unlink(tmp_file); } free(tmp_file); } -- 2.47.2