]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
style: Avoid operator++ in expression
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 29 Dec 2021 13:58:20 +0000 (14:58 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 29 Dec 2021 14:20:26 +0000 (15:20 +0100)
src/argprocessing.cpp

index 3ab7c5eddb88e672d559e5169e3cc38af7d532b0..a83dc597b5d73bc63e757eef1f4b66f0fc64ef39 100644 (file)
@@ -340,7 +340,8 @@ process_arg(const Context& ctx,
       return Statistic::unsupported_compiler_option;
     }
     state.common_args.push_back(args[i]);
-    state.common_args.push_back(args[++i]);
+    state.common_args.push_back(args[i + 1]);
+    ++i;
     return nullopt;
   }