Warning fix: assignment from incompatible pointer type
wtools.c:347: assignment from incompatible pointer type wtools.c:353: assignment from incompatible pointer type wtools.c:361: assignment from incompatible pointer type wtools.c:373: assignment from incompatible pointer type wtools.c:377: assignment from incompatible pointer type Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Этот коммит содержится в:
родитель
5f448874e2
Коммит
c079e73d08
@ -347,7 +347,7 @@ button_set_text (WButton *b, const char *text)
|
|||||||
dlg_redraw (b->widget.parent);
|
dlg_redraw (b->widget.parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Radio button widget */
|
/* Radio button widget */
|
||||||
static int radio_event (Gpm_Event *event, void *);
|
static int radio_event (Gpm_Event *event, void *);
|
||||||
|
|
||||||
|
10
src/wtools.c
10
src/wtools.c
@ -344,17 +344,17 @@ quick_dialog_skip (QuickDialog *qd, int nskip)
|
|||||||
|
|
||||||
switch (qw->widget_type) {
|
switch (qw->widget_type) {
|
||||||
case quick_checkbox:
|
case quick_checkbox:
|
||||||
qw->widget = check_new (ypos, xpos, *qw->result, I18N (qw->text));
|
qw->widget = (Widget *)check_new (ypos, xpos, *qw->result, I18N (qw->text));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case quick_radio:
|
case quick_radio:
|
||||||
r = radio_new (ypos, xpos, qw->hotkey_pos, const_cast(const char **, qw->str_result));
|
r = radio_new (ypos, xpos, qw->hotkey_pos, const_cast(const char **, qw->str_result));
|
||||||
r->pos = r->sel = qw->value;
|
r->pos = r->sel = qw->value;
|
||||||
qw->widget = r;
|
qw->widget = (Widget *)r;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case quick_button:
|
case quick_button:
|
||||||
qw->widget =
|
qw->widget = (Widget *)
|
||||||
button_new (ypos, xpos, qw->value,
|
button_new (ypos, xpos, qw->value,
|
||||||
(qw->value ==
|
(qw->value ==
|
||||||
B_ENTER) ? DEFPUSH_BUTTON : NORMAL_BUTTON,
|
B_ENTER) ? DEFPUSH_BUTTON : NORMAL_BUTTON,
|
||||||
@ -370,11 +370,11 @@ quick_dialog_skip (QuickDialog *qd, int nskip)
|
|||||||
input->point = 0;
|
input->point = 0;
|
||||||
if (qw->value & 2)
|
if (qw->value & 2)
|
||||||
input->completion_flags |= INPUT_COMPLETE_CD;
|
input->completion_flags |= INPUT_COMPLETE_CD;
|
||||||
qw->widget = input;
|
qw->widget = (Widget *)input;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case quick_label:
|
case quick_label:
|
||||||
qw->widget = label_new (ypos, xpos, I18N (qw->text));
|
qw->widget = (Widget *)label_new (ypos, xpos, I18N (qw->text));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user