Ticket #3427: fix -Wmissing-field-initializers compiler warnings...

...and use compiler option for future compile checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-03-31 20:36:09 +03:00 committed by Andrew Borodin
parent 24f0e19ac6
commit e9b41e5215
4 changed files with 10 additions and 8 deletions

View File

@ -55,6 +55,7 @@ dnl MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
MC_CHECK_ONE_CFLAG([-Wmaybe-uninitialized])
MC_CHECK_ONE_CFLAG([-Wmissing-braces])
MC_CHECK_ONE_CFLAG([-Wmissing-declarations])
MC_CHECK_ONE_CFLAG([-Wmissing-field-initializers])
MC_CHECK_ONE_CFLAG([-Wmissing-parameter-type])
MC_CHECK_ONE_CFLAG([-Wmissing-prototypes])
MC_CHECK_ONE_CFLAG([-Wnested-externs])

View File

@ -599,7 +599,7 @@ static FileProgressStatus
progress_update_one (file_op_total_context_t * tctx, file_op_context_t * ctx, off_t add)
{
struct timeval tv_current;
static struct timeval tv_start = { };
static struct timeval tv_start = { 0 };
tctx->progress_count++;
tctx->progress_bytes += (uintmax_t) add;

View File

@ -199,7 +199,8 @@ static WListbox *find_list; /* Listbox with the file list */
static find_file_options_t options = {
TRUE, TRUE, TRUE, FALSE, FALSE,
FALSE, TRUE, FALSE, FALSE, FALSE, FALSE
FALSE, TRUE, FALSE, FALSE, FALSE, FALSE,
FALSE, NULL
};
static char *in_start_dir = INPUT_LAST_TEXT;

View File

@ -272,12 +272,12 @@ static const global_keymap_ini_t default_listbox_keymap[] = {
/* tree */
static const global_keymap_ini_t default_tree_keymap[] = {
{"Help = f1"},
{"Rescan = f2; ctrl-r"},
{"Forget = f3"},
{"ToggleNavigation = f4"},
{"Copy = f5"},
{"Move = f6"},
{"Help", "f1"},
{"Rescan", "f2; ctrl-r"},
{"Forget", "f3"},
{"ToggleNavigation", "f4"},
{"Copy", "f5"},
{"Move", "f6"},
#if 0
{"MakeDir", "f7"},
#endif