forked from AuroraMiddleware/gtk
build: Fix compiler warnings
This commit is contained in:
parent
0c57e3131f
commit
fd4bfd5050
@ -4097,7 +4097,7 @@ tablet_pad_group_handle_buttons (void *data,
|
|||||||
uint32_t *p;
|
uint32_t *p;
|
||||||
|
|
||||||
GDK_DISPLAY_NOTE (seat->display, EVENTS,
|
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));
|
wp_tablet_pad_group, buttons->size));
|
||||||
|
|
||||||
wl_array_for_each (p, buttons)
|
wl_array_for_each (p, buttons)
|
||||||
|
@ -138,7 +138,7 @@ notify_changes (GdkX11Screen *x11_screen,
|
|||||||
#define return_if_fail_bytes(buffer, n_bytes) G_STMT_START{ \
|
#define return_if_fail_bytes(buffer, n_bytes) G_STMT_START{ \
|
||||||
if (BYTES_LEFT (buffer) < (n_bytes)) \
|
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)); \
|
(n_bytes), BYTES_LEFT (buffer)); \
|
||||||
return FALSE; \
|
return FALSE; \
|
||||||
} \
|
} \
|
||||||
@ -273,7 +273,8 @@ parse_settings (unsigned char *data,
|
|||||||
!fetch_card32 (&buffer, &n_entries))
|
!fetch_card32 (&buffer, &n_entries))
|
||||||
goto out;
|
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++)
|
for (i = 0; i < n_entries; i++)
|
||||||
{
|
{
|
||||||
|
@ -446,7 +446,7 @@ file_write (GIOChannel *source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GTK_NOTE (PRINTING,
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user