g_clear_pointer: work around gcc helpfulness
authorDan Winship <danw@gnome.org>
Thu, 10 May 2012 17:29:39 +0000 (13:29 -0400)
committerDan Winship <danw@gnome.org>
Thu, 17 May 2012 14:47:05 +0000 (10:47 -0400)
commit0ecbb0a4045877936d872fb8aaedd49baa4d89ef
treeec70cbb430ed847080b2481eb9559fc9ef0115c1
parent787f8087836804c903f8271699e576544426e023
g_clear_pointer: work around gcc helpfulness

gcc gets upset when we do "((GDestroyNotify) destroy) (_p)" because
it's non-portable. But we don't care; we already know glib wouldn't
work on any platform where different pointer types have different
calling conventions. So tweak the code to avoid the warning.

https://bugzilla.gnome.org/show_bug.cgi?id=674634
glib/gmem.h