Re: [PATCH 70/76] diff.c: convert --inter-hunk-context
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Jan 19, 2019, 01:18 UTC
- Message-ID
- <20190119011834.GP840@szeder.dev>
- In-Reply-To
- <20190117130615.18732-71-pclouds@gmail.com>
On Thu, Jan 17, 2019 at 08:06:09PM +0700, Nguyễn Thái Ngọc Duy wrote:
Show 10 quoted lines
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> > --- > diff.c | 6 +++--- > parse-options.h | 3 ++- > 2 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/diff.c b/diff.c > index 3e7c36524d..cc10b27df0 100644 > --- a/diff.c > +++ b/diff.c
Show 7 quoted lines
> @@ -5503,9 +5506,6 @@ int diff_opt_parse(struct diff_options *options, > } > > /* misc options */ > - else if (opt_arg(arg, '\0', "inter-hunk-context", > - &options->interhunkcontext)) > - ;
This hunk removes the last remaining callsite of the static opt_arg() function:
diff.c:4581:12: error: ‘opt_arg’ defined but not used [-Werror=unused-function]
static int opt_arg(const char *arg, int arg_short, const char *arg_long, int *val)
^
cc1: all warnings being treated as errors> else > return 0; > return 1;