editcmd_dialogs.c: Cleanup -Wcast-align warning

Found by Clang 6.0.1

editcmd_dialogs.c:474:20: warning: cast from 'char *' to 'etags_hash_t *' (aka 'struct etags_hash_struct *') increases required alignment from 1 to 8 [-Wcast-align]
        curr_def = (etags_hash_t *) tmp_curr_def;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2019-01-05 18:53:53 +00:00 committed by Andrew Borodin
parent 8dcc5d42b0
commit 0327191c24

View File

@ -414,7 +414,6 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, int max_l
int start_x, start_y, offset, i; int start_x, start_y, offset, i;
char *curr = NULL; char *curr = NULL;
etags_hash_t *curr_def = NULL;
WDialog *def_dlg; WDialog *def_dlg;
WListbox *def_list; WListbox *def_list;
int def_dlg_h; /* dialog height */ int def_dlg_h; /* dialog height */
@ -467,11 +466,10 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, int max_l
/* pop up the dialog and apply the chosen completion */ /* pop up the dialog and apply the chosen completion */
if (dlg_run (def_dlg) == B_ENTER) if (dlg_run (def_dlg) == B_ENTER)
{ {
char *tmp_curr_def = (char *) curr_def; etags_hash_t *curr_def = NULL;
int do_moveto = 0; int do_moveto = 0;
listbox_get_current (def_list, &curr, (void **) &tmp_curr_def); listbox_get_current (def_list, &curr, (void **) &curr_def);
curr_def = (etags_hash_t *) tmp_curr_def;
if (edit->modified) if (edit->modified)
{ {
if (!edit_query_dialog2 if (!edit_query_dialog2