From 992e07c8b2e8f75bcc87c30e1ac2aca1ccf432e3 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Wed, 9 Jun 2010 10:23:39 +0200 Subject: [PATCH] Fix warnings Do explicit casts to avoid warnings. --- gio/inotify/inotify-helper.c | 2 +- gio/tests/memory-output-stream.c | 2 +- tests/testglib.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gio/inotify/inotify-helper.c b/gio/inotify/inotify-helper.c index 9ccee1c18..6d3b2489b 100644 --- a/gio/inotify/inotify-helper.c +++ b/gio/inotify/inotify-helper.c @@ -182,7 +182,7 @@ ih_event_callback (ik_event_t *event, if (ih_event_is_paired_move (event) && sub->pair_moves) { - char *parent_dir = _ip_get_path_for_wd (event->pair->wd); + char *parent_dir = (char *) _ip_get_path_for_wd (event->pair->wd); fullpath = _ih_fullpath_from_event (event->pair, parent_dir); other = g_file_new_for_path (fullpath); g_free (fullpath); diff --git a/gio/tests/memory-output-stream.c b/gio/tests/memory-output-stream.c index c30e96fe2..953afa409 100644 --- a/gio/tests/memory-output-stream.c +++ b/gio/tests/memory-output-stream.c @@ -115,7 +115,7 @@ test_properties (void) gpointer data_fun = g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (mo)); gpointer data_prop; g_object_get (mo, "data", &data_prop, NULL); - g_assert_cmphex (data_fun, ==, data_prop); + g_assert_cmphex ((guint) data_fun, ==, (guint) data_prop); g_object_unref (o); g_object_unref (mo); diff --git a/tests/testglib.c b/tests/testglib.c index dbd0b5adb..2453e167a 100644 --- a/tests/testglib.c +++ b/tests/testglib.c @@ -1255,7 +1255,7 @@ various_string_tests (void) GTimeVal ref_date, date; gchar *tmp_string = NULL, *tmp_string_2, *string, *date_str; guint i; - gchar *tz; + const gchar *tz; if (g_test_verbose()) g_print ("checking string chunks...");