diff --git a/gio/tests/file.c b/gio/tests/file.c index 2967406fb..0ef75dfca 100644 --- a/gio/tests/file.c +++ b/gio/tests/file.c @@ -2469,7 +2469,7 @@ test_copy_preserve_mode (void) /* Reset the umask after querying it above. There’s no way to query it without * changing it. */ umask (current_umask); - g_test_message ("Current umask: %u", current_umask); + g_test_message ("Current umask: %u", (unsigned int) current_umask); for (i = 0; i < G_N_ELEMENTS (vectors); i++) { diff --git a/glib/tests/mapping.c b/glib/tests/mapping.c index bbd4de8b0..af5dd60c3 100644 --- a/glib/tests/mapping.c +++ b/glib/tests/mapping.c @@ -228,7 +228,7 @@ test_child_private (void) spawn_flags |= G_SPAWN_DO_NOT_REAP_CHILD; #endif - g_snprintf (pid, sizeof(pid), "%d", getpid ()); + g_snprintf (pid, sizeof (pid), "%d", (int) getpid ()); child_argv[0] = local_argv[0]; child_argv[1] = "mapchild"; child_argv[2] = pid;