mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-15 20:50:30 +03:00
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
ad0379bf0e
commit
670d66e7a0
@ -1318,14 +1318,11 @@ static int
|
|||||||
draid_merge(int argc, char *argv[])
|
draid_merge(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char filename[MAXPATHLEN];
|
char filename[MAXPATHLEN];
|
||||||
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
Block a user