Misc warning fixes

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
This commit is contained in:
Dan Winship
2009-05-01 10:08:52 -04:00
parent 36cb01f447
commit 92ac8d165e
10 changed files with 17 additions and 13 deletions

View 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);

View 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 */