From 54848b89d52e23c614977834433a6893c1a1c3cb Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 8 Jun 2010 20:11:21 +0000 Subject: Fix warnings which occour with gcc 4.5 svn path=/trunk/libnsfb/; revision=10569 --- src/surface/x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/surface') diff --git a/src/surface/x.c b/src/surface/x.c index 96ec69f..2b8d3bf 100644 --- a/src/surface/x.c +++ b/src/surface/x.c @@ -7,6 +7,7 @@ */ #define _XOPEN_SOURCE 500 +#define NEED_HINTS_ALLOC #include #include @@ -34,13 +35,13 @@ #include "cursor.h" #if defined(NEED_HINTS_ALLOC) -xcb_size_hints_t * +static xcb_size_hints_t * xcb_alloc_size_hints(void) { return calloc(1, sizeof(xcb_size_hints_t)); } -void +static void xcb_free_size_hints(xcb_size_hints_t *hints) { free(hints); -- cgit v1.2.3