]> granicus.if.org Git - vim/commitdiff
patch 8.0.0767: build failure with Athena and Motif v8.0.0767
authorBram Moolenaar <Bram@vim.org>
Mon, 24 Jul 2017 18:15:30 +0000 (20:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 24 Jul 2017 18:15:30 +0000 (20:15 +0200)
Problem:    Build failure with Athena and Motif.
Solution:   Move local variable delcarations. (Kazunobu Kuriyama)

src/gui_x11.c
src/version.c

index e0b91e65cdc14e9cef6abb859971a89de8a985da..855f4be0e9183f3a448f72e12f9b8d1e8b239eba 100644 (file)
@@ -2270,8 +2270,6 @@ fontset_ascent(XFontSet fs)
 gui_mch_get_color(char_u *name)
 {
     guicolor_T  requested;
-    XColor      available;
-    Colormap   colormap;
 
     /* can't do this when GUI not running */
     if (!gui.in_use || name == NULL || *name == NUL)
@@ -2295,6 +2293,8 @@ gui_mch_get_color(char_u *name)
 gui_mch_get_rgb_color(int r, int g, int b)
 {
     char        spec[8]; /* space enough to hold "#RRGGBB" */
+    XColor      available;
+    Colormap   colormap;
 
     vim_snprintf(spec, sizeof(spec), "#%.2x%.2x%.2x", r, g, b);
     colormap = DefaultColormap(gui.dpy, DefaultScreen(gui.dpy));
index 8d698c7aa5775466c3b69310f8c1fc4b7baef65a..d629eac520dbc41cd91fc378a01e759ea5c5b201 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    767,
 /**/
     766,
 /**/