[gtk+] Fix some print format warnings



commit 1b9fa975af45b1723fe21a65503859609dc0e7ad
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Wed Aug 13 18:17:23 2014 +0000

    Fix some print format warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734736

 gdk/win32/gdkdisplay-win32.c |    2 +-
 gdk/win32/gdkevents-win32.c  |    4 ++--
 gtk/gtkmountoperation-stub.c |    2 +-
 gtk/gtkmountoperation.c      |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 4976e77..694d22c 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 bb2af32..af40acf 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 3811f0b..7307052 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 0ac9c2a..89a0882 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 ("");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]