]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-fs: fs_file_init_parent() - Keep mode and flags parameters separated
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 Nov 2020 11:04:43 +0000 (13:04 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 Nov 2020 11:04:43 +0000 (13:04 +0200)
commitce132c38c1865e6d43e8e7c0e916586f576113bd
tree34f70da59e3fb12f9030f44cd6a2176b2ae10263
parentbf7952d33e39358a1258697505ed25c050e14bbb
lib-fs: fs_file_init_parent() - Keep mode and flags parameters separated

Internally cast them both to (int) before ORing them together for the
fs_file_init_with_event() call.

This avoids compiler warnings with -Wenum-enum-conversion:
warning: bitwise operation between different enumeration types ('enum fs_open_mode' and 'enum fs_open_flags')
src/lib-fs/fs-api-private.h
src/lib-fs/fs-api.c
src/lib-fs/fs-metawrap.c
src/lib-fs/fs-randomfail.c
src/lib-fs/fs-sis-queue.c
src/lib-fs/fs-sis.c
src/plugins/fs-compress/fs-compress.c
src/plugins/mail-crypt/fs-crypt-common.c