From b5f4ef37543b46f9ef44cabf691a92d6592fb286 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 22 Dec 2015 09:04:27 -0700 Subject: [PATCH] parse: ensure that option group/category hold 64-bit options.c:3459:12: warning: large integer implicitly truncated to unsigned type [-Woverflow] .group = FIO_OPT_G_INVALID, Signed-off-by: Jens Axboe --- parse.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parse.h b/parse.h index 3ba80479..77450ef5 100644 --- a/parse.h +++ b/parse.h @@ -1,6 +1,7 @@ #ifndef FIO_PARSE_H #define FIO_PARSE_H +#include #include "flist.h" /* @@ -69,8 +70,8 @@ struct fio_option { int (*verify)(struct fio_option *, void *); const char *prof_name; /* only valid for specific profile */ void *prof_opts; - unsigned int category; /* what type of option */ - unsigned int group; /* who to group with */ + uint64_t category; /* what type of option */ + uint64_t group; /* who to group with */ void *gui_data; int is_seconds; /* time value with seconds base */ int is_time; /* time based value */ -- 2.25.1