embed.c: avoid a few compilation warnings

This commit is contained in:
Pierre Pronchery 2022-05-14 01:37:02 +02:00
parent a092f69cd6
commit f640f8061c

View File

@ -64,6 +64,7 @@ static int _embed(int argc, char * argv[])
int fd; int fd;
GError * error = NULL; GError * error = NULL;
GIOChannel * channel; GIOChannel * channel;
(void) argc;
if(g_spawn_async_with_pipes(NULL, argv, NULL, flags, NULL, NULL, &pid, if(g_spawn_async_with_pipes(NULL, argv, NULL, flags, NULL, NULL, &pid,
NULL, &fd, NULL, &error) == FALSE) NULL, &fd, NULL, &error) == FALSE)
@ -93,6 +94,7 @@ static gboolean _embed_on_can_read(GIOChannel * channel, GIOCondition condition,
GIOStatus status; GIOStatus status;
uint32_t xid; uint32_t xid;
char * p; char * p;
(void) data;
status = g_io_channel_read_line(channel, &str, &length, NULL, &error); status = g_io_channel_read_line(channel, &str, &length, NULL, &error);
switch(status) switch(status)
@ -129,6 +131,8 @@ static gboolean _embed_on_can_read(GIOChannel * channel, GIOCondition condition,
/* embed_on_child */ /* embed_on_child */
static void _embed_on_child(GPid pid, gint status, gpointer data) static void _embed_on_child(GPid pid, gint status, gpointer data)
{ {
(void) data;
if(WIFEXITED(status) || WIFSIGNALED(status)) if(WIFEXITED(status) || WIFSIGNALED(status))
{ {
g_spawn_close_pid(pid); g_spawn_close_pid(pid);