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
(cherry picked from commit 63cb341)
  • Loading branch information
nabijaczleweli authored and szubersk committed Nov 16, 2022
1 parent be039ad commit 1b44c55
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/zfs-tests/cmd/draid/draid.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,15 +1317,12 @@ draid_merge_impl(nvlist_t *allcfgs, const char *srcfilename, int *mergedp)
static int
draid_merge(int argc, char *argv[])
{
char filename[MAXPATHLEN];
int c, error, total_merged = 0, verbose = 0;
char filename[MAXPATHLEN] = {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 1b44c55

Please sign in to comment.