Commit a62588cb authored by Rocco Rutte's avatar Rocco Rutte

Fix some warnings with -W about missing initializers in structs

parent 28c3000c
......@@ -39,7 +39,7 @@ static struct mapping_t AliasHelp[] = {
{ N_("Undel"), OP_UNDELETE },
{ N_("Select"), OP_GENERIC_SELECT_ENTRY },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
static const char *
......
......@@ -46,7 +46,7 @@ static struct mapping_t FolderHelp[] = {
{ N_("Chdir"), OP_CHANGE_DIRECTORY },
{ N_("Mask"), OP_ENTER_MASK },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
typedef struct folder_t
......
......@@ -94,7 +94,7 @@ static struct mapping_t ComposeHelp[] = {
{ N_("Attach file"), OP_COMPOSE_ATTACH_FILE },
{ N_("Descrip"), OP_COMPOSE_EDIT_DESCRIPTION },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
static void snd_entry (char *b, size_t blen, MUTTMENU *menu, int num)
......
......@@ -410,7 +410,7 @@ static struct mapping_t IndexHelp[] = {
{ N_("Reply"), OP_REPLY },
{ N_("Group"), OP_GROUP_REPLY },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
/* This function handles the message index window as well as commands returned
......
......@@ -43,7 +43,7 @@ static imap_auth_t imap_authenticators[] = {
#endif
{ imap_auth_login, "login" },
{ NULL }
{ NULL, NULL }
};
/* imap_authenticate: Attempt to authenticate using either user-specified
......
......@@ -251,7 +251,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int timeout)
int mx_unlock_file (const char *path, int fd, int dot)
{
#ifdef USE_FCNTL
struct flock unlockit = { F_UNLCK, 0, 0, 0 };
struct flock unlockit = { F_UNLCK, 0, 0, 0, 0 };
memset (&unlockit, 0, sizeof (struct flock));
unlockit.l_type = F_UNLCK;
......
......@@ -97,7 +97,7 @@ Flags[] =
{ 'z', M_SIZE, 0, eat_range },
{ '=', M_DUPLICATED, 0, NULL },
{ '$', M_UNREFERENCED, 0, NULL },
{ 0 }
{ 0, 0, 0, NULL }
};
static pattern_t *SearchPattern = NULL; /* current search pattern */
......
......@@ -283,7 +283,7 @@ static pop_auth_t pop_authenticators[] = {
#endif
{ pop_auth_apop, "apop" },
{ pop_auth_user, "user" },
{ NULL }
{ NULL, NULL }
};
/*
......
......@@ -42,7 +42,7 @@ static struct mapping_t PostponeHelp[] = {
{ N_("Del"), OP_DELETE },
{ N_("Undel"), OP_UNDELETE },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
......
......@@ -51,7 +51,7 @@ static struct mapping_t QueryHelp[] = {
{ N_("Make Alias"), OP_CREATE_ALIAS },
{ N_("Search"), OP_SEARCH },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf);
......
......@@ -55,7 +55,7 @@ static struct mapping_t AttachHelp[] = {
{ N_("Pipe"), OP_PIPE },
{ N_("Print"), OP_PRINT },
{ N_("Help"), OP_HELP },
{ NULL }
{ NULL, 0 }
};
void mutt_update_tree (ATTACHPTR **idx, short idxlen)
......
......@@ -487,7 +487,7 @@ static struct mapping_t RemailerHelp[] =
{ N_("Delete"), OP_MIX_DELETE },
{ N_("Abort"), OP_EXIT },
{ N_("OK"), OP_MIX_USE },
{ NULL }
{ NULL, 0 }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment