Fix warnings

Do explicit casts to avoid warnings.
This commit is contained in:
Juan A. Suarez Romero 2010-06-09 10:23:39 +02:00
parent 2b72587bed
commit 992e07c8b2
3 changed files with 3 additions and 3 deletions

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

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

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