X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=file.h;h=c1d02a5bea57add8d9049aad117fb91592740459;hp=19413fc8fa777d96b419e62c2c9d0c8433b4c2b2;hb=bea5c23dfb5166931ff476a483fd66d5e5b10601;hpb=e0739a728590d0890615a47988f3e79128e47a05 diff --git a/file.h b/file.h index 19413fc8..c1d02a5b 100644 --- a/file.h +++ b/file.h @@ -128,11 +128,11 @@ struct fio_file { #define FILE_FLAG_FNS(name) \ static inline void fio_file_set_##name(struct fio_file *f) \ { \ - (f)->flags |= FIO_FILE_##name; \ + (f)->flags = (enum fio_file_flags) ((f)->flags | FIO_FILE_##name); \ } \ static inline void fio_file_clear_##name(struct fio_file *f) \ { \ - (f)->flags &= ~FIO_FILE_##name; \ + (f)->flags = (enum fio_file_flags) ((f)->flags & ~FIO_FILE_##name); \ } \ static inline int fio_file_##name(struct fio_file *f) \ { \