mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-07 11:25:48 +01:00
Fix warnings
Do explicit casts to avoid warnings.
This commit is contained in:
parent
2b72587bed
commit
992e07c8b2
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user