summaryrefslogtreecommitdiff
path: root/src/gui_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-24 20:15:30 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-24 20:15:30 +0200
commitd60547bf80881f6c99bcbd7c8c4c6cfb7e405a90 (patch)
treea9e7d3bf9a0a83949d6d9efd04ee9899f06b2165 /src/gui_x11.c
parentc4f43bce7c43e5fe413e77b66b9805f3354fbb63 (diff)
downloadvim-git-d60547bf80881f6c99bcbd7c8c4c6cfb7e405a90.tar.gz
patch 8.0.0767: build failure with Athena and Motifv8.0.0767
Problem: Build failure with Athena and Motif. Solution: Move local variable delcarations. (Kazunobu Kuriyama)
Diffstat (limited to 'src/gui_x11.c')
-rw-r--r--src/gui_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index e0b91e65c..855f4be0e 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -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));