This is the same as listed in:
https://lists.gnu.org/archive/html/qemu-devel/2013-05/msg01667.html
rpm -q glib2 glib2-2.12.3-4.el5_3.1 glib2-2.12.3-4.el5_3.1
Using: http://pidgin.im/pipermail/commits/2011-February/018919.html
I came up with:
diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c index a3cb776..5c9cec8 100644 --- a/libcacard/vscclient.c +++ b/libcacard/vscclient.c @@ -407,7 +407,13 @@ do_socket_read(GIOChannel *source, } break; default: +#if GLIB_CHECK_VERSION(2, 16 ,0) g_warn_if_reached(); +#else + g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, + "(%s:%d):%s%s code should not be reached", + __FILE__, __LINE__, G_STRFUNC, G_STRFUNC[0] ? ":" : ""); +#endif return FALSE; }
@@ -760,7 +766,11 @@ main(
g_io_channel_unref(channel_stdin); g_io_channel_unref(channel_socket); +#if GLIB_CHECK_VERSION(2, 22, 0) g_byte_array_unref(socket_to_send); +#else + g_byte_array_free(socket_to_send, TRUE); +#endif
closesocket(sock); return 0;
And I get a clean compile.
This is the same as listed in:
https:/ /lists. gnu.org/ archive/ html/qemu- devel/2013- 05/msg01667. html
rpm -q glib2 12.3-4. el5_3.1 12.3-4. el5_3.1
glib2-2.
glib2-2.
Using: pidgin. im/pipermail/ commits/ 2011-February/ 018919. html
http://
I came up with:
diff --git a/libcacard/ vscclient. c b/libcacard/ vscclient. c vscclient. c vscclient. c read(GIOChannel *source, VERSION( 2, 16 ,0)
g_ warn_if_ reached( ); WARNING,
index a3cb776..5c9cec8 100644
--- a/libcacard/
+++ b/libcacard/
@@ -407,7 +407,13 @@ do_socket_
}
break;
default:
+#if GLIB_CHECK_
+#else
+ g_log(G_LOG_DOMAIN, G_LOG_LEVEL_
+ "(%s:%d):%s%s code should not be reached",
+ __FILE__, __LINE__, G_STRFUNC, G_STRFUNC[0] ? ":" : "");
+#endif
return FALSE;
}
@@ -760,7 +766,11 @@ main(
g_ io_channel_ unref(channel_ stdin); io_channel_ unref(channel_ socket) ; VERSION( 2, 22, 0) byte_array_ unref(socket_ to_send) ; array_free( socket_ to_send, TRUE);
g_
+#if GLIB_CHECK_
g_
+#else
+ g_byte_
+#endif
closesocke t(sock) ;
return 0;
And I get a clean compile.