Message ID | 20190509212558.GA15438@sigill.intra.peff.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 5/9/2019 5:25 PM, Jeff King wrote: > This is a continuation of my efforts to get us compiling with > -Wunused-parameter. This round finishes most of the cleanups and fixes > I intend to do (though I have a handful of cleanup cases that I'm still > poking at to make sure they're not in fact bugs). After that, I have > some patches to annotate unused parameters we can't get rid of (e.g., > for cases where we're conforming to a callback interface), and then we > can finally flip the warning on for developer-mode. This series looks correct to me. I look forward to having the warning on in developer mode! Thanks, -Stolee
diff --git a/builtin/rebase--interactive.c b/builtin/rebase--interactive.c deleted file mode 100644 index 72fd4b53a8..0000000000 diff --git a/builtin/rebase.c b/builtin/rebase.c index 8c2cbc72f6..cc1e1a997d 100644 --- a/builtin/rebase.c +++ b/builtin/rebase.c @@ -508,7 +508,7 @@ int cmd_rebase__interactive(int argc, const char **argv, const char *prefix) if (argc == 1) usage_with_options(builtin_rebase_interactive_usage, options); - argc = parse_options(argc, argv, NULL, options, + argc = parse_options(argc, argv, prefix, options, builtin_rebase_interactive_usage, PARSE_OPT_KEEP_ARGV0); if (!is_null_oid(&squash_onto))