]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Remove obsolete statistics counter and comment when disabled
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2021 12:41:43 +0000 (14:41 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Aug 2021 12:41:43 +0000 (14:41 +0200)
src/ccache.cpp

index fde5d935c3bb6a7472cf5300ae9272a59f4149ec..374a41e43f7cf6dde3969afab0b50c0fbc799252 100644 (file)
@@ -2001,8 +2001,7 @@ do_cache_compilation(Context& ctx, const char* const* argv)
 
   if (ctx.config.disable()) {
     LOG_RAW("ccache is disabled");
-    // Statistic::cache_miss is a dummy to trigger stats_flush.
-    return nonstd::make_unexpected(Statistic::cache_miss);
+    return nonstd::make_unexpected(Statistic::none);
   }
 
   LOG("Command line: {}", Util::format_argv_for_logging(argv));