]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0092: Compiler warning for missing type in scroll_event() v9.1.0092
authorChristian Brabandt <cb@256bit.org>
Sat, 10 Feb 2024 12:17:16 +0000 (13:17 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 10 Feb 2024 12:17:16 +0000 (13:17 +0100)
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>
src/gui_gtk_x11.c
src/version.c

index 518edaf04f0414548c81922a7c1812baac100be1..d4a8b936486a4ff98d485766ac14f3bdea372871 100644 (file)
@@ -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
index 91abfe113d09ff5aed43667f123b8b851461e4b0..86ed8b708d127e5417cb669cabfc91c89e51c5df 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    92,
 /**/
     91,
 /**/