From 58c87bd045dfa5f924f25cd59577b36baf7817ff Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sat, 12 Mar 2016 23:55:48 +0100 Subject: 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 --- disk-utils/fdisk-menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disk-utils/fdisk-menu.c') diff --git a/disk-utils/fdisk-menu.c b/disk-utils/fdisk-menu.c index 84b8fb733..71958442f 100644 --- a/disk-utils/fdisk-menu.c +++ b/disk-utils/fdisk-menu.c @@ -19,7 +19,7 @@ struct menu_entry { but don't print it in help */ enum fdisk_labeltype label; /* only for this label */ - enum fdisk_labeltype exclude; /* all labels except this */ + int exclude; /* all labels except these */ enum fdisk_labeltype parent; /* for nested PT */ }; @@ -28,7 +28,7 @@ struct menu_entry { struct menu { enum fdisk_labeltype label; /* only for this label */ - enum fdisk_labeltype exclude; /* all labels except this */ + int exclude; /* all labels except these */ unsigned int nonested : 1; /* don't make this menu active in nested PT */ -- cgit v1.2.3-55-g7522