0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.1.0092: Compiler warning for missing type in scroll_event()

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>
This commit is contained in:
Christian Brabandt
2024-02-10 13:17:16 +01:00
parent 627c950e5b
commit c908371aec
2 changed files with 3 additions and 1 deletions

View 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

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
92,
/**/
91,
/**/