[gtk+] mountoperation: Silence gcc
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mountoperation: Silence gcc
- Date: Thu, 11 Feb 2016 02:45:27 +0000 (UTC)
commit 573f51cb29887d83c5c95e17378aaf7aa6aa9f32
Author: Benjamin Otte <otte gnome org>
Date: Sat Feb 6 03:58:39 2016 +0100
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 7307052..e053324 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 f95834d..f9365b0 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 ("");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]