[glib] Avoid more compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Avoid more compiler warnings
- Date: Tue, 8 Feb 2011 12:42:03 +0000 (UTC)
commit 4368a07e02b7008b3ab7c56b7637f7bbec505ea5
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 8 07:41:49 2011 -0500
Avoid more compiler warnings
glib/giochannel.c | 12 ++++++------
glib/gmessages.c | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/glib/giochannel.c b/glib/giochannel.c
index d34381b..75808eb 100644
--- a/glib/giochannel.c
+++ b/glib/giochannel.c
@@ -561,14 +561,14 @@ static void
g_io_channel_purge (GIOChannel *channel)
{
GError *err = NULL;
- GIOStatus status;
+ GIOStatus status G_GNUC_UNUSED;
g_return_if_fail (channel != NULL);
if (channel->write_buf && channel->write_buf->len > 0)
{
GIOFlags flags;
-
+
/* Set the channel to blocking, to avoid a busy loop
*/
flags = g_io_channel_get_flags (channel);
@@ -577,10 +577,10 @@ g_io_channel_purge (GIOChannel *channel)
status = g_io_channel_flush (channel, &err);
if (err)
- { /* No way to return the error */
- g_warning ("Error flushing string: %s", err->message);
- g_error_free (err);
- }
+ { /* No way to return the error */
+ g_warning ("Error flushing string: %s", err->message);
+ g_error_free (err);
+ }
}
/* Flush these in case anyone tries to close without unrefing */
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 245e454..5129c42 100644
--- a/glib/gmessages.c
+++ b/glib/gmessages.c
@@ -506,7 +506,7 @@ g_logv (const gchar *log_domain,
* in an out-of-memory situation
*/
gchar buffer[1025];
- gsize size;
+ gsize size G_GNUC_UNUSED;
va_list args2;
G_VA_COPY (args2, args1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]