mirror of https://github.com/MidnightCommander/mc
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:
parent
24f0e19ac6
commit
e9b41e5215
|
@ -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])
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue