summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-02-10 13:17:16 +0100
committerChristian Brabandt <cb@256bit.org>2024-02-10 13:17:16 +0100
commitc908371aec920b8174e40a1adb73a50e326a5668 (patch)
treebdc25d8154f626c049457682d755dd54047bdb00 /src/gui_gtk_x11.c
parent627c950e5b30503a084bd0092f9cb2a5fe73fe87 (diff)
patch 9.1.0092: Compiler warning for missing type in scroll_event()v9.1.0092
Problem: Compiler warning for missing type in scroll_event() (chdiza) Solution: Declare display_type explicitly as integer fixes: #14005 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 518edaf04f..d4a8b93648 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2065,7 +2065,7 @@ scroll_event(GtkWidget *widget,
#endif
#define DT_X11 1
#define DT_WAYLAND 2
- static display_type;
+ static int display_type;
if (!display_type)
display_type = gui_mch_get_display() ? DT_X11 : DT_WAYLAND;
#endif