From f966580d22d47ab97bceb2f067fc2b9402af01b7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 5 May 2019 22:44:49 +0100 Subject: remove some warnings in amiga frontend build --- frontends/amiga/history_local.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'frontends/amiga/history_local.c') diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c index 0ae9cc040..3529ec777 100644 --- a/frontends/amiga/history_local.c +++ b/frontends/amiga/history_local.c @@ -88,6 +88,15 @@ ami_history_local_destroy(struct ami_history_local_window *history_local_win) return res; } +static void ami_history_local_destroy_cw(struct ami_corewindow *ami_cw) +{ + struct ami_history_local_window *history_local_win; + /* technically degenerate container of */ + history_local_win = (struct ami_history_local_window *)ami_cw; + + ami_history_local_destroy(history_local_win); +} + /** * callback for mouse action for local history on core window * @@ -271,7 +280,7 @@ nserror ami_history_local_present(struct gui_window *gw) ncwin->core.draw = ami_history_local_draw; ncwin->core.key = ami_history_local_key; ncwin->core.mouse = ami_history_local_mouse; - ncwin->core.close = ami_history_local_destroy; + ncwin->core.close = ami_history_local_destroy_cw; ncwin->core.event = NULL; ncwin->core.drag_end = NULL; ncwin->core.icon_drop = NULL; -- cgit v1.2.3