Fix non-initialized variable and pointer casted to int in tests/gio-test.c

This commit is contained in:
Loic Le Page 2022-01-19 19:10:29 +01:00 committed by Loïc Le Page
parent 2d5c6fc520
commit 5f5a4a74b4

View File

@ -128,7 +128,7 @@ recv_message (GIOChannel *channel,
if (cond & G_IO_IN) if (cond & G_IO_IN)
{ {
char buf[BUFSIZE]; char buf[BUFSIZE];
guint nbytes; guint nbytes = 0;
guint nb; guint nb;
guint j; guint j;
int i, seq; int i, seq;
@ -297,7 +297,7 @@ main (int argc,
exit (1); exit (1);
} }
windows_messages_channel = g_io_channel_win32_new_messages ((guint)hwnd); windows_messages_channel = g_io_channel_win32_new_messages ((guint) (guintptr) hwnd);
g_io_add_watch (windows_messages_channel, G_IO_IN, recv_windows_message, 0); g_io_add_watch (windows_messages_channel, G_IO_IN, recv_windows_message, 0);
#endif #endif