fix -Wconversion warning at struct chown_but
patch will fix these warnings:
chown.c:136:34: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
chown.c:254:14: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
chown.c:259:78: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion]
chown.c:270:42: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion]
chown.c:274:42: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion]
patch against a5cd0093c5330ae6118cbf2830cf288dd4a68ed0
compile test with gcc 4.6/4.9/5.2 and clang 3.7
Signed-off-by: Andreas Mohr <and@gmx.li>
a
|
b
|
|
81 | 81 | /* *INDENT-OFF* */ |
82 | 82 | static struct |
83 | 83 | { |
84 | | int ret_cmd, flags, y, len; |
| 84 | int ret_cmd, y, len; |
| 85 | button_flags_t flags; |
85 | 86 | const char *text; |
86 | 87 | } chown_but[BUTTONS] = { |
87 | 88 | { B_SETALL, NORMAL_BUTTON, 5, 0, N_("Set &all") }, |
… |
… |
|
92 | 93 | }; |
93 | 94 | |
94 | 95 | /* summary length of three buttons */ |
95 | | static unsigned int blen = 0; |
| 96 | static int blen = 0; |
96 | 97 | |
97 | 98 | static struct { |
98 | 99 | int y; |