We have a test that #includes our headers from a C++ program to make
sure we don't throw any errors or warnings as a result of that.
The new inline implementation of g_steal_pointer() does an implicit
conversion from (void *), which is not valid in C++.
Add a cast to avoid the problem.
Thanks to Ignacio Casal Quinteiro for the report.
static inline gpointer
(g_steal_pointer) (gpointer pp)
{
- gpointer *ptr = pp;
+ gpointer *ptr = (gpointer *) pp;
gpointer ref;
ref = *ptr;