From ad1254b59d41e127879fc9f495d392316135b4a5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 25 Aug 2020 11:09:47 +0200 Subject: [PATCH] gpgconf: Silence warnings from parsing the options files * tools/gpgconf-comp.c (retrieve_options_from_program): Set verbose flag for the arg parser only in --verbose mode. -- Signed-off-by: Werner Koch --- tools/gpgconf-comp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index c905bd13a..d6cc14c28 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1819,8 +1819,9 @@ retrieve_options_from_program (gc_component_id_t component, int only_installed) pargs.flags = (ARGPARSE_FLAG_KEEP | ARGPARSE_FLAG_SYS | ARGPARSE_FLAG_USER - | ARGPARSE_FLAG_WITHATTR - | ARGPARSE_FLAG_VERBOSE); + | ARGPARSE_FLAG_WITHATTR); + if (opt.verbose) + pargs.flags |= ARGPARSE_FLAG_VERBOSE; while (gpgrt_argparser (&pargs, opt_table, config_name)) {