summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-08-13 18:17:23 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2014-08-13 23:40:59 +0000
commit1b9fa975af45b1723fe21a65503859609dc0e7ad (patch)
tree9cfd150d76d7e2c0c00fb5d352a1c650c2d87e0f
parent694c8d32d5fab4ef8d0139a910cee95200c34d8a (diff)
downloadgtk+-1b9fa975af45b1723fe21a65503859609dc0e7ad.tar.gz
Fix some print format warnings
https://bugzilla.gnome.org/show_bug.cgi?id=734736
-rw-r--r--gdk/win32/gdkdisplay-win32.c2
-rw-r--r--gdk/win32/gdkevents-win32.c4
-rw-r--r--gtk/gtkmountoperation-stub.c2
-rw-r--r--gtk/gtkmountoperation.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 4976e77312..694d22ca6e 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -424,7 +424,7 @@ _clipboard_window_procedure (HWND hwnd,
retval = inner_clipboard_window_procedure (hwnd, message, wparam, lparam);
debug_indent -= 2;
- GDK_NOTE (EVENTS, g_print (" => %I64d%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
+ GDK_NOTE (EVENTS, g_print (" => %" G_GINT64_FORMAT "%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
return retval;
}
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index bb2af328a3..af40acfc43 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -287,7 +287,7 @@ _gdk_win32_window_procedure (HWND hwnd,
retval = inner_window_procedure (hwnd, message, wparam, lparam);
debug_indent -= 2;
- GDK_NOTE (EVENTS, g_print (" => %I64d%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
+ GDK_NOTE (EVENTS, g_print (" => %" G_GINT64_FORMAT "%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
return retval;
}
@@ -3268,7 +3268,7 @@ gdk_event_translate (MSG *msg,
break;
case WM_ACTIVATEAPP:
- GDK_NOTE (EVENTS, g_print (" %s thread: %I64d",
+ GDK_NOTE (EVENTS, g_print (" %s thread: %" G_GINT64_FORMAT,
msg->wParam ? "YES" : "NO",
(gint64) msg->lParam));
if (msg->wParam && GDK_WINDOW_IS_MAPPED (window))
diff --git a/gtk/gtkmountoperation-stub.c b/gtk/gtkmountoperation-stub.c
index 3811f0bf01..7307052c0a 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."),
- pid);
+ (int) pid);
return FALSE;
}
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 0ac9c2a7aa..89a0882f60 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -1088,7 +1088,7 @@ add_pid_to_process_list_store (GtkMountOperation *mount_operation,
&pixbuf);
if (name == NULL)
- name = g_strdup_printf (_("Unknown Application (PID %d)"), pid);
+ name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) pid);
if (command_line == NULL)
command_line = g_strdup ("");