Mercurial > pidgin
changeset 31210:f876cb251c7a
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.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 15 Feb 2011 01:58:41 +0000 |
parents | 6e6379254def |
children | 5dccfd26108b |
files | libpurple/protocols/jabber/bosh.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 } }