From 5e86cb05666c448de2f61c23ae94e94ef4b38d64 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Fri, 30 Apr 2010 18:49:18 +0100 Subject: Fix GCC error on undeclared variable when not using abstract socket This is a regression found by tinderbox in previous commit: xcb_util.c: In function '_xcb_open': xcb_util.c:213: error: 'fd' undeclared (first use in this function) --- src/xcb_util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xcb_util.c b/src/xcb_util.c index cc4e24a..3516186 100644 --- a/src/xcb_util.c +++ b/src/xcb_util.c @@ -140,9 +140,7 @@ static int _xcb_open_abstract(char *protocol, const char *file, size_t filelen); static int _xcb_open(char *host, char *protocol, const int display) { -#ifdef HAVE_ABSTRACT_SOCKETS int fd; -#endif static const char unix_base[] = "/tmp/.X11-unix/X"; const char *base = unix_base; size_t filelen; -- cgit v1.2.3