# HG changeset patch # User Mark Doliner # Date 1297735121 0 # Node ID f876cb251c7a31147982fc6909a1ee490e838c56 # Parent 6e6379254def7ebd9c6351a4c53e0e25370a883d g_warn_if_reached was added in glib 2.16.0, but we agree to support 2.12.0. Fix this particular probably by using g_log, instead. This should print the same output in this case, and seemed like the simplest solution. diff -r 6e6379254def -r f876cb251c7a libpurple/protocols/jabber/bosh.c --- a/libpurple/protocols/jabber/bosh.c Mon Feb 14 09:05:09 2011 +0000 +++ b/libpurple/protocols/jabber/bosh.c Tue Feb 15 01:58:41 2011 +0000 @@ -484,7 +484,13 @@ /* Shouldn't happen; this should be the only place pipelining * is turned off. */ +#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 } }