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[])
|
draid_merge(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char filename[MAXPATHLEN] = {0};
|
char filename[MAXPATHLEN] = {0};
|
||||||
int c, error, total_merged = 0, verbose = 0;
|
int c, error, total_merged = 0;
|
||||||
nvlist_t *allcfgs;
|
nvlist_t *allcfgs;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, ":v")) != -1) {
|
while ((c = getopt(argc, argv, ":")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'v':
|
|
||||||
verbose++;
|
|
||||||
break;
|
|
||||||
case ':':
|
case ':':
|
||||||
(void) fprintf(stderr,
|
(void) fprintf(stderr,
|
||||||
"missing argument for '%c' option\n", optopt);
|
"missing argument for '%c' option\n", optopt);
|
||||||
|
|
Loading…
Reference in New Issue