https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92563
Bug ID: 92563 Summary: trunk/gcc/cp/error.c:1988: useless parameter ? Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- trunk/gcc/cp/error.c:1988:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] Source code is static void dump_call_expr_args (cxx_pretty_printer *pp, tree t, int flags, bool skipfirst) { tree arg; call_expr_arg_iterator iter; pp_cxx_left_paren (pp); FOR_EACH_CALL_EXPR_ARG (arg, iter, t) { if (skipfirst) skipfirst = false; else { dump_expr (pp, arg, flags | TFF_EXPR_IN_PARENS); if (more_call_expr_args_p (&iter)) pp_separate_with_comma (pp); } } pp_cxx_right_paren (pp); } I can't see much point in parameter skipfirst. Suggest remove.