X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=40cd46587d3e03477451fd3ef2aaa8b832c6ef1a;hp=188f72826185d2a1c3dba8f48bca01ccfa2a1e56;hb=78583f91bc1df864f2d8e270e08ddd386f379172;hpb=25f488581e510c1b440f2e76842ec23f3dad7b57 diff --git a/parse.c b/parse.c index 188f7282..40cd4658 100644 --- a/parse.c +++ b/parse.c @@ -380,7 +380,7 @@ static int check_int(const char *p, int *val) return 1; } -static int opt_len(const char *str) +static size_t opt_len(const char *str) { char *postfix; @@ -1167,7 +1167,7 @@ void option_init(struct fio_option *o) o->minfp = DBL_MIN; o->maxfp = DBL_MAX; } - if (o->type == FIO_OPT_STR_SET && o->def) { + if (o->type == FIO_OPT_STR_SET && o->def && !o->no_warn_def) { log_err("Option %s: string set option with" " default will always be true\n", o->name); }