X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=57865b112e7a9118a9a4e6fc3dd0a60a0d66a9a8;hp=4d8e95db7fbe88b84a45c7bb215b1b7f3db47223;hb=3f344202f614ef3275e7000738d998ca85ebb9cf;hpb=f085737f15364ba194e5582b19a71eb35d4b8d11 diff --git a/parse.c b/parse.c index 4d8e95db..57865b11 100644 --- a/parse.c +++ b/parse.c @@ -625,6 +625,8 @@ void options_init(struct fio_option *options) o->minval = 0; o->maxval = 1; } + if (o->type == FIO_OPT_STR_SET && o->def) + fprintf(stderr, "Option %s: string set option with default will always be true\n", o->name); if (!o->cb && !o->off1) fprintf(stderr, "Option %s: neither cb nor offset given\n", o->name); if (o->type == FIO_OPT_STR || o->type == FIO_OPT_STR_STORE)