]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove last usage of legacy args_remove_first function
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 17:11:44 +0000 (19:11 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 7 May 2020 17:11:44 +0000 (19:11 +0200)
src/ccache.cpp

index 31a58f807cc347abe59391034430a20ab4cce6b9..b4ada3d03138a05c58871ee16981eb24289d7522 100644 (file)
@@ -1959,7 +1959,7 @@ find_compiler(Context& ctx, const char* const* argv)
   // We might be being invoked like "ccache gcc -c foo.c".
   std::string base(Util::base_name(argv[0]));
   if (same_executable_name(base.c_str(), MYNAME)) {
-    args_remove_first(ctx.orig_args);
+    ctx.orig_args.pop_front();
     if (is_full_path(ctx.orig_args->argv[0])) {
       // A full path was given.
       return;