[gnio] Remove gratious g_warnings



commit 20a11de74b653325ae2af577b53d41a62888e571
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Apr 28 11:01:18 2009 +0200

    Remove gratious g_warnings
    
    I don't see how these warnings are ever useful. There is nothing the
    user can do about it and things will work fine anyway.
---
 gio/gsocket.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/gio/gsocket.c b/gio/gsocket.c
index d0954b4..468deca 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -1042,13 +1042,8 @@ g_socket_send_message (GSocket                *socket,
     else
       /* ABI is incompatible */
       {
-        static gboolean was_warned;
         gint i;
 
-        if (!was_warned)
-          g_warning ("GOutputVector ABI is incompatible with your platform.");
-        was_warned = TRUE;
-
         msg.msg_iov = g_newa (struct iovec, num_vectors);
         for (i = 0; i < num_vectors; i++)
           {
@@ -1209,13 +1204,8 @@ g_socket_receive_message (GSocket                 *socket,
     else
       /* ABI is incompatible */
       {
-        static gboolean was_warned;
         gint i;
 
-        if (!was_warned)
-          g_warning ("GInputVector ABI is incompatible with your platform.");
-        was_warned = TRUE;
-
         msg.msg_iov = g_newa (struct iovec, num_vectors);
         for (i = 0; i < num_vectors; i++)
           {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]