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-11.3.2~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658350841974a076790dc52dd2d4238936c7e6b0;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 d2c013579..1a517e40f 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -277,7 +277,7 @@ bool fstype(char *fname, 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 */