X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=parse.c;h=40cd46587d3e03477451fd3ef2aaa8b832c6ef1a;hb=refs%2Ftags%2Ffio-2.1.13;hp=188f72826185d2a1c3dba8f48bca01ccfa2a1e56;hpb=ab50817f68faf742e7725922b9225fc067275750;p=fio.git 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); }