]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 24 May 2020 08:23:08 +0000 (10:23 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 24 May 2020 18:49:06 +0000 (20:49 +0200)
src/Util.hpp
src/ccache.cpp

index 38c49861ef0839b47750a7432d9e0a59d2f8198d..cdf4e1ea3209035eb23791fd44999e3908702e09 100644 (file)
@@ -170,6 +170,7 @@ std::string get_path_in_cache(nonstd::string_view cache_dir,
                               uint32_t levels,
                               nonstd::string_view name,
                               nonstd::string_view suffix);
+
 // Return a shortened view into the base name of `path`. This view starts at the
 // beginning of the base name and ends at either the position the first dot, or
 // `max_length`, or the length of the base name, whichever is the shortest.
index 0deb2adc21d94f31d582bc648574fa5a161ad349..cae3f35f4a8f266d9dca308bc1923250fabb7882 100644 (file)
@@ -915,11 +915,9 @@ to_cache(Context& ctx,
       // We can output stderr immediately instead of rerunning the compiler.
       copy_fd(fd, 2);
       close(fd);
-
-      failed(STATS_STATUS, status);
     }
 
-    failed(STATS_STATUS);
+    failed(STATS_STATUS, status);
   }
 
   if (ctx.config.depend_mode()) {