From 573f51cb29887d83c5c95e17378aaf7aa6aa9f32 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 6 Feb 2016 03:58:39 +0100 Subject: [PATCH] mountoperation: Silence gcc Also, printf()ing a GPid should be forbidden. --- gtk/gtkmountoperation-stub.c | 2 +- gtk/gtkmountoperation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkmountoperation-stub.c b/gtk/gtkmountoperation-stub.c index 7307052c0a..e053324065 100644 --- a/gtk/gtkmountoperation-stub.c +++ b/gtk/gtkmountoperation-stub.c @@ -60,7 +60,7 @@ _gtk_mount_operation_kill_process (GPid pid, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _("Cannot kill process with PID %d. Operation is not implemented."), - (int) pid); + (int) (gssize) pid); return FALSE; } diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index f95834d4d1..f9365b0e8a 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -1090,7 +1090,7 @@ add_pid_to_process_list_store (GtkMountOperation *mount_operation, &pixbuf); if (name == NULL) - name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) pid); + name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) (gssize) pid); if (command_line == NULL) command_line = g_strdup ("");