Fix warnings
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 9 Jun 2010 08:23:39 +0000 (10:23 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 9 Jun 2010 08:32:12 +0000 (10:32 +0200)
Do explicit casts to avoid warnings.

gio/inotify/inotify-helper.c
gio/tests/memory-output-stream.c
tests/testglib.c

index 9ccee1c..6d3b248 100644 (file)
@@ -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);
index c30e96f..953afa4 100644 (file)
@@ -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);
index dbd0b5a..2453e16 100644 (file)
@@ -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...");