]> git.ipfire.org Git - thirdparty/util-linux.git/commit
misc: fix icc/clang compiler warnings
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sat, 12 Mar 2016 22:55:48 +0000 (23:55 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 13 Mar 2016 20:47:27 +0000 (21:47 +0100)
commit58c87bd045dfa5f924f25cd59577b36baf7817ff
tree1f31a83c298514bdc8d0e3c05f58cee83f9c78cd
parente1a15f8f686df21281ee8e20349f4d8579a8a9e0
misc: fix icc/clang compiler warnings

clang warning:
libmount/src/tab.c:1833:6: warning: variable 'rc' is used uninitialized whenever
      'if' condition is true [-Wsometimes-uninitialized]
        if (!mpc)
            ^~~~

icc printf warnings:
    libmount/src/monitor.c(348): warning #2279: printf/scanf format not a string literal and no format arguments
            DBG(MONITOR, ul_debugobj(mn, status == 1 ? " success" : " nothing"));
            ^
    login-utils/vipw.c(348): warning #2279: printf/scanf format not a string literal and no format arguments
                           : _("You are using shadow passwords on this system.\n"));
                                                                                  ^

icc enum warnings:
    disk-utils/fdisk-menu.c(150): warning #188: enumerated type mixed with another type
            .exclude = FDISK_DISKLABEL_GPT | FDISK_DISKLABEL_BSD,
                       ^
    libsmartcols/src/table_print.c(750): warning #188: enumerated type mixed with another type
                            &width, align,
                                    ^

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
disk-utils/fdisk-menu.c
libmount/src/monitor.c
libmount/src/tab.c
libsmartcols/src/table_print.c
login-utils/vipw.c