[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation error (trivial fix)
From: |
dhruva |
Subject: |
Compilation error (trivial fix) |
Date: |
Wed, 5 May 2010 23:28:59 -0700 (PDT) |
On GNU/Linux using gcc 2.95, I get a compilation error (C required declaring
all variables at the beginning of the function). The patch below fixes it for
me.
=== modified file 'src/xterm.c'
--- src/xterm.c2010-05-02 18:44:04 +0000
+++ src/xterm.c2010-05-06 06:20:39 +0000
@@ -2291,7 +2291,7 @@
x_draw_image_relief (s)
struct glyph_string *s;
{
- int x0, y0, x1, y1, thick, raised_p;
+ int x0, y0, x1, y1, thick, raised_p, extra;
XRectangle r;
int x = s->x;
int y = s->ybase - image_ascent (s->img, s->face, &s->slice);
@@ -2322,7 +2322,7 @@
raised_p = s->img->relief > 0;
}
- int extra = s->face->id == TOOL_BAR_FACE_ID
+ extra = s->face->id == TOOL_BAR_FACE_ID
? XINT (Vtool_bar_button_margin) : 0;
x0 = x - thick - extra;
-dhruva
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compilation error (trivial fix),
dhruva <=