From: Joel Rosdahl Date: Sun, 24 May 2020 08:23:08 +0000 (+0200) Subject: Clean up X-Git-Tag: v4.0~436 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0645931fe77056cb8ddbc5e321b1acad9cebfcfe;p=thirdparty%2Fccache.git Clean up --- diff --git a/src/Util.hpp b/src/Util.hpp index 38c49861e..cdf4e1ea3 100644 --- a/src/Util.hpp +++ b/src/Util.hpp @@ -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. diff --git a/src/ccache.cpp b/src/ccache.cpp index 0deb2adc2..cae3f35f4 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -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()) {