From 948a4c8e234f8600029e57f4d1120f75bd8bdd00 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 28 Nov 2024 18:31:43 +0000 Subject: [PATCH] Fix a compile warning when building with GTK 1. gtkwin_deny_term_resize() is unused in a GTK1 build, triggering an 'unused static function' compiler warning. --- unix/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/window.c b/unix/window.c index bb772d32..db0eff31 100644 --- a/unix/window.c +++ b/unix/window.c @@ -2546,13 +2546,13 @@ static void gtkwin_set_raw_mouse_mode_pointer(TermWin *tw, bool activate) static void compute_whole_window_size(GtkFrontend *inst, int wchars, int hchars, int *wpix, int *hpix); -#endif static void gtkwin_deny_term_resize(void *vctx) { GtkFrontend *inst = (GtkFrontend *)vctx; drawing_area_setup_simple(inst); } +#endif static void gtkwin_timer(void *vctx, unsigned long now) {