Ticket #3427: mc-fix-wmissing-field-initializers-warning.patch
File mc-fix-wmissing-field-initializers-warning.patch, 1.7 KB (added by and, 10 years ago) |
---|
-
m4.include/mc-cflags.m4
fix -Wmissing-field-initializers compiler warnings and use compiler option for future compile checks Please double check default field values Signed-off-by: Andreas Mohr <and@gmx.li>
a b 55 55 MC_CHECK_ONE_CFLAG([-Wmaybe-uninitialized]) 56 56 MC_CHECK_ONE_CFLAG([-Wmissing-braces]) 57 57 MC_CHECK_ONE_CFLAG([-Wmissing-declarations]) 58 MC_CHECK_ONE_CFLAG([-Wmissing-field-initializers]) 58 59 MC_CHECK_ONE_CFLAG([-Wmissing-parameter-type]) 59 60 MC_CHECK_ONE_CFLAG([-Wmissing-prototypes]) 60 61 MC_CHECK_ONE_CFLAG([-Wnested-externs]) -
src/filemanager/file.c
a b 599 599 progress_update_one (file_op_total_context_t * tctx, file_op_context_t * ctx, off_t add) 600 600 { 601 601 struct timeval tv_current; 602 static struct timeval tv_start = { };602 static struct timeval tv_start = { 0 }; 603 603 604 604 tctx->progress_count++; 605 605 tctx->progress_bytes += (uintmax_t) add; -
src/filemanager/find.c
a b 199 199 200 200 static find_file_options_t options = { 201 201 TRUE, TRUE, TRUE, FALSE, FALSE, 202 FALSE, TRUE, FALSE, FALSE, FALSE, FALSE 202 FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, 203 FALSE, 204 NULL 203 205 }; 204 206 205 207 static char *in_start_dir = INPUT_LAST_TEXT; -
src/keybind-defaults.c
a b 272 272 273 273 /* tree */ 274 274 static const global_keymap_ini_t default_tree_keymap[] = { 275 {"Help =f1"},276 {"Rescan =f2; ctrl-r"},277 {"Forget =f3"},278 {"ToggleNavigation =f4"},279 {"Copy =f5"},280 {"Move =f6"},275 {"Help", "f1"}, 276 {"Rescan", "f2; ctrl-r"}, 277 {"Forget", "f3"}, 278 {"ToggleNavigation", "f4"}, 279 {"Copy", "f5"}, 280 {"Move", "f6"}, 281 281 #if 0 282 282 {"MakeDir", "f7"}, 283 283 #endif