r10569 vince - /trunk/libnsfb/src/surface/x.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Jun 8 21:11:22 BST 2010


Author: vince
Date: Tue Jun  8 15:11:21 2010
New Revision: 10569

URL: http://source.netsurf-browser.org?rev=10569&view=rev
Log:
Fix warnings which occour with gcc 4.5

Modified:
    trunk/libnsfb/src/surface/x.c

Modified: trunk/libnsfb/src/surface/x.c
URL: http://source.netsurf-browser.org/trunk/libnsfb/src/surface/x.c?rev=10569&r1=10568&r2=10569&view=diff
==============================================================================
--- trunk/libnsfb/src/surface/x.c (original)
+++ trunk/libnsfb/src/surface/x.c Tue Jun  8 15:11:21 2010
@@ -7,6 +7,7 @@
  */
 
 #define _XOPEN_SOURCE 500
+#define NEED_HINTS_ALLOC
 
 #include <stdbool.h>
 #include <stdlib.h>
@@ -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);




More information about the netsurf-commits mailing list