diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 22:44:49 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-05-05 22:48:44 +0100 |
commit | f966580d22d47ab97bceb2f067fc2b9402af01b7 (patch) | |
tree | 5f7cb958692ff611730e56938812941f38ba33f9 /frontends/amiga/history_local.c | |
parent | 8dc78699374dca5b8369ffa65a6e27a3eeb8f985 (diff) | |
download | netsurf-f966580d22d47ab97bceb2f067fc2b9402af01b7.tar.gz netsurf-f966580d22d47ab97bceb2f067fc2b9402af01b7.tar.bz2 |
remove some warnings in amiga frontend build
Diffstat (limited to 'frontends/amiga/history_local.c')
-rw-r--r-- | frontends/amiga/history_local.c | 11 |
1 files changed, 10 insertions, 1 deletions
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; |