build: Fix compiler warnings

This commit is contained in:
Mohammed Sadiq 2018-06-11 20:44:23 +05:30
parent 0c57e3131f
commit fd4bfd5050
3 changed files with 5 additions and 4 deletions

View 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)

View 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++)
{

View 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;
}