build: Fix compiler warnings
authorMohammed Sadiq <sadiq@sadiqpk.org>
Mon, 11 Jun 2018 15:14:23 +0000 (20:44 +0530)
committerMohammed Sadiq <sadiq@sadiqpk.org>
Mon, 11 Jun 2018 15:42:41 +0000 (21:12 +0530)
gdk/wayland/gdkdevice-wayland.c
gdk/x11/xsettings-client.c
modules/printbackends/gtkprintbackendfile.c

index 79e592750fdb88ecfe8e4ef2e754d183bbb10890..3ccc79c5a8007e944ef18057402ba495d48a0852 100644 (file)
@@ -4097,7 +4097,7 @@ tablet_pad_group_handle_buttons (void                           *data,
   uint32_t *p;
 
   GDK_DISPLAY_NOTE (seat->display, EVENTS,
-            g_message ("tablet pad group handle buttons, pad group = %p, n_buttons = %ld",
+            g_message ("tablet pad group handle buttons, pad group = %p, n_buttons = %" G_GSIZE_FORMAT,
                        wp_tablet_pad_group, buttons->size));
 
   wl_array_for_each (p, buttons)
index 247e90e9f717965672ade07eaaf9b0930be3397a..8c309c92271ec32352398cdb35daeddc330ac697 100644 (file)
@@ -138,7 +138,7 @@ notify_changes (GdkX11Screen *x11_screen,
 #define return_if_fail_bytes(buffer, n_bytes) G_STMT_START{ \
   if (BYTES_LEFT (buffer) < (n_bytes)) \
     { \
-      g_warning ("Invalid XSETTINGS property (read off end: Expected %u bytes, only %ld left", \
+      g_warning ("Invalid XSETTINGS property (read off end: Expected %u bytes, only %"G_GSIZE_FORMAT" left", \
                  (n_bytes), BYTES_LEFT (buffer)); \
       return FALSE; \
     } \
@@ -273,7 +273,8 @@ parse_settings (unsigned char *data,
       !fetch_card32 (&buffer, &n_entries))
     goto out;
 
-  GDK_NOTE (SETTINGS, g_message ("reading %u settings (serial %u byte order %u)", n_entries, serial, buffer.byte_order));
+  GDK_NOTE (SETTINGS, g_message ("reading %lu settings (serial %lu byte order %u)",
+                                 (unsigned long)n_entries, (unsigned long)serial, buffer.byte_order));
 
   for (i = 0; i < n_entries; i++)
     {
index b568e01395bb857627cc17706fb9ef405d5094b0..64380de750ab7f3f63ab175602e8af7b48d352ec 100644 (file)
@@ -446,7 +446,7 @@ file_write (GIOChannel   *source,
     }
 
   GTK_NOTE (PRINTING,
-            g_print ("FILE Backend: Writting %lu byte chunk to target file\n", bytes_read));
+            g_print ("FILE Backend: Writting %"G_GSIZE_FORMAT" byte chunk to target file\n", bytes_read));
 
   return TRUE;
 }