Skip to content

Commit

Permalink
tests: cmd: draid: remove unused and undocumented -v
Browse files Browse the repository at this point in the history
Found with -Wunused-but-set-variable on Clang trunk

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13304
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent e623821 commit 6328187
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/zfs-tests/cmd/draid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6328187

Please sign in to comment.