mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Avoid more compiler warnings
This commit is contained in:
parent
8d572f5d22
commit
4368a07e02
@ -561,7 +561,7 @@ static void
|
|||||||
g_io_channel_purge (GIOChannel *channel)
|
g_io_channel_purge (GIOChannel *channel)
|
||||||
{
|
{
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
GIOStatus status;
|
GIOStatus status G_GNUC_UNUSED;
|
||||||
|
|
||||||
g_return_if_fail (channel != NULL);
|
g_return_if_fail (channel != NULL);
|
||||||
|
|
||||||
@ -577,10 +577,10 @@ g_io_channel_purge (GIOChannel *channel)
|
|||||||
status = g_io_channel_flush (channel, &err);
|
status = g_io_channel_flush (channel, &err);
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
{ /* No way to return the error */
|
{ /* No way to return the error */
|
||||||
g_warning ("Error flushing string: %s", err->message);
|
g_warning ("Error flushing string: %s", err->message);
|
||||||
g_error_free (err);
|
g_error_free (err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flush these in case anyone tries to close without unrefing */
|
/* Flush these in case anyone tries to close without unrefing */
|
||||||
|
@ -506,7 +506,7 @@ g_logv (const gchar *log_domain,
|
|||||||
* in an out-of-memory situation
|
* in an out-of-memory situation
|
||||||
*/
|
*/
|
||||||
gchar buffer[1025];
|
gchar buffer[1025];
|
||||||
gsize size;
|
gsize size G_GNUC_UNUSED;
|
||||||
va_list args2;
|
va_list args2;
|
||||||
|
|
||||||
G_VA_COPY (args2, args1);
|
G_VA_COPY (args2, args1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user