diff options
author | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-03-12 23:55:48 +0100 |
---|---|---|
committer | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-03-13 21:47:27 +0100 |
commit | 58c87bd045dfa5f924f25cd59577b36baf7817ff (patch) | |
tree | 1f31a83c298514bdc8d0e3c05f58cee83f9c78cd /libsmartcols | |
parent | e1a15f8f686df21281ee8e20349f4d8579a8a9e0 (diff) | |
download | util-linux-58c87bd045dfa5f924f25cd59577b36baf7817ff.tar.gz |
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>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table_print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 510386ec8..d86b06841 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -702,7 +702,8 @@ static int print_line(struct libscols_table *tb, static int print_title(struct libscols_table *tb) { - int rc, align; + int rc; + mbs_align_t align; size_t len = 0, width; char *title = NULL, *buf = NULL; |