From: Arnaud Fontaine Date: Fri, 30 Apr 2010 17:49:18 +0000 (+0100) Subject: Fix GCC error on undeclared variable when not using abstract socket X-Git-Tag: 1.8.1~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e86cb05666c448de2f61c23ae94e94ef4b38d64;p=profile%2Fivi%2Flibxcb.git 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) --- 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;