From: Sven Hartge Date: Mon, 30 Nov 2020 09:24:16 +0000 (+0100) Subject: Fix org#2568 About compilation issue on gcc10 X-Git-Tag: Release-9.6.7~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2896e758f8b8f932fd33f427777172905c87cb8c;p=thirdparty%2Fbacula.git Fix org#2568 About compilation issue on gcc10 --- diff --git a/bacula/src/findlib/fstype.c b/bacula/src/findlib/fstype.c index 107f7a877..c82107abc 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -188,7 +188,7 @@ bool fstype(FF_PKT *ff_pkt, char *fs, int fslen) * * $ grep -r SUPER_MAGIC /usr/include/linux */ - switch (st.f_type) { + switch ((unsigned int)st.f_type) { /* Known good values */ /* ext2, ext3, and ext4 have the same code */ case 0xef53: fstype = "ext2"; break; /* EXT2_SUPER_MAGIC */