tests: cmd: draid: remove unused and undocumented -v
Found with -Wunused-but-set-variable on Clang trunk Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13304
This commit is contained in:
parent
4620342a32
commit
63cb3413ea
|
@ -1312,14 +1312,11 @@ static int
|
|||
draid_merge(int argc, char *argv[])
|
||||
{
|
||||
char filename[MAXPATHLEN] = {0};
|
||||
int c, error, total_merged = 0, verbose = 0;
|
||||
int c, error, total_merged = 0;
|
||||
nvlist_t *allcfgs;
|
||||
|
||||
while ((c = getopt(argc, argv, ":v")) != -1) {
|
||||
while ((c = getopt(argc, argv, ":")) != -1) {
|
||||
switch (c) {
|
||||
case 'v':
|
||||
verbose++;
|
||||
break;
|
||||
case ':':
|
||||
(void) fprintf(stderr,
|
||||
"missing argument for '%c' option\n", optopt);
|
||||
|
|
Loading…
Reference in New Issue