]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use correct statistics counter for -optf/--options-file failure
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Feb 2017 21:21:18 +0000 (22:21 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Feb 2017 21:21:43 +0000 (22:21 +0100)
ccache.c

index 62f24ace7fc38e58b03e3ec5761d002e6f9b5ac9..c6b7b5d14a41bb5ce75e01e2bcfecb68d9d8c417 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -2158,7 +2158,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                if (str_eq(argv[i], "-optf") || str_eq(argv[i], "--options-file")) {
                        if (i > argc) {
                                cc_log("Expected argument after -optf/--options-file");
-                               stats_update(STATS_UNSUPPORTED_OPTION);
+                               stats_update(STATS_ARGS);
                                result = false;
                                goto out;
                        }