Misc warning fixes
authorDan Winship <danw@gnome.org>
Fri, 1 May 2009 14:08:52 +0000 (10:08 -0400)
committerDan Winship <danw@gnome.org>
Fri, 1 May 2009 14:37:45 +0000 (10:37 -0400)
glib/pcre/pcre_ucp_search_funcs.c, glib/pcre/pcre_valid_utf8.c: add
back missing config.h includes, and this time add them to the copies
in glib/update-pcre/ too so they don't get lost again on the next PCRE
update.

glib/garray.c, glib/gbase64.c: fix signed/unsigned pointer casts

gio/xdgmime/xdgmimeglob.c: remove unused variable

gio/tests/live-g-file.c: fix printf args on x86_64

tests/Makefile.am, tests/regex-test.c: remove redundant -DENABLE_REGEX

gio/tests/live-g-file.c
gio/xdgmime/xdgmimeglob.c
glib/garray.c
glib/gbase64.c
glib/pcre/pcre_ucp_searchfuncs.c
glib/pcre/pcre_valid_utf8.c
glib/update-pcre/pcre_ucp_searchfuncs.c
glib/update-pcre/pcre_valid_utf8.c
tests/Makefile.am
tests/regex-test.c

index fe11d3188df6bd613b99309ce5b0ccbe5c3c8994..0b074df27dd54c9823911014374cf7553d1371ab 100644 (file)
@@ -458,8 +458,8 @@ test_initial_structure (gconstpointer test_data)
                             PATTERN_FILE_SIZE, NULL, &error);
       g_assert_no_error (error);
       total_read += read;
-      log ("      read %d bytes, total = %d of %d.\n", read, total_read,
-          PATTERN_FILE_SIZE);
+      log ("      read %d bytes, total = %d of %d.\n", (int) read,
+          (int) total_read, PATTERN_FILE_SIZE);
     }
   g_assert_cmpint (total_read, ==, PATTERN_FILE_SIZE);
 
index 22acd3e0e031229165ce9b8fa27927dd334defa5..d7c79b17f9bbe5bfbecd9a386113f78607cf3038 100644 (file)
@@ -375,7 +375,6 @@ _xdg_glob_hash_lookup_file_name (XdgGlobHash *glob_hash,
   int i, n;
   MimeWeight mimes[10];
   int n_mimes = 10;
-  xdg_unichar_t *ucs4;
   int len;
 
   /* First, check the literals */
index 64f70e77a92dc182f6204ada2dc2dd54bcabfd79..8cb6e1d84f65303a5d9b83f7d692a13610871f3e 100644 (file)
@@ -181,7 +181,7 @@ g_array_free (GArray   *farray,
       segment = NULL;
     }
   else
-    segment = array->data;
+    segment = (gchar*) array->data;
 
   if (preserve_wrapper)
     {
index bfdc76aa5ab426184265b14acaffc32b7a6fc0d7..bebff76e4cad289e376bc77492d83a267b2c3292 100644 (file)
@@ -415,7 +415,7 @@ g_base64_decode_inplace (gchar *text,
 
   *out_len = g_base64_decode_step (text, input_length, (guchar *) text, &state, &save);
   
-  return text; 
+  return (guchar *) text; 
 }
 
 
index 9060fbccd12df24a0390cc6858b99f84b62f7b38..3e1ed38f12e841e32603ba7bf65be2d778603c81 100644 (file)
@@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
 /* This module contains code for searching the table of Unicode character
 properties. */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "pcre_internal.h"
 
 #include "ucp.h"               /* Category definitions */
index a5766b454d88cab8d15fff871c74f33143ac60fe..b7671a96ea0fc757db97ad20ce505b959461e05c 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include "pcre_internal.h"
 
 /*
index b95d2794ca6a03226c022edc9c8a4b37df0a22b8..77ec8d14b50e6927991666f79f711d28910d2da9 100644 (file)
@@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
 /* This module contains code for searching the table of Unicode character
 properties. */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "pcre_internal.h"
 
 #include "ucp.h"               /* Category definitions */
index a5766b454d88cab8d15fff871c74f33143ac60fe..b7671a96ea0fc757db97ad20ce505b959461e05c 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include "pcre_internal.h"
 
 /*
index 57f1555f7a44ae22fdb6797b27d498bd100032ac..da1397643818766fd9872a11a0fd96400a752972 100644 (file)
@@ -2,18 +2,11 @@ include $(top_srcdir)/Makefile.decl
 
 SUBDIRS=gobject refcount
 
-if ENABLE_REGEX
-enable_regex = -DENABLE_REGEX
-else
-enable_regex =
-endif
-
 AM_CPPFLAGS =                          \
        -I$(top_srcdir)                 \
        -I$(top_srcdir)/glib            \
        -I$(top_srcdir)/gmodule         \
-       $(GLIB_DEBUG_FLAGS)             \
-       $(enable_regex)
+       $(GLIB_DEBUG_FLAGS)
 
 AM_CFLAGS = -g
 
index 2e0005131b75bbd4119cc5801386f3af1bd3a6fc..6ad9ceb7da641172a0fa784d380d5c0551137121 100644 (file)
@@ -20,6 +20,8 @@
 #undef G_DISABLE_ASSERT
 #undef G_LOG_DOMAIN
 
+#include "config.h"
+
 #include <string.h>
 #include <locale.h>
 #include "glib.h"