gtkutil.c: In function ‘get_geditable_name’:
gtkutil.c:612:17: error: void value not ignored as it ought to be
612 | IM_FREEF( g_free, name );
It looks like newer glib versions define g_free as a macro and it's conflicting with IM_FREEF?
This is how the preprocessor expands it:
{
if (name) {
(void) (__builtin_object_size (((name)), 0) != ((size_t) - 1)) ? g_free_sized ((name), __builtin_object_size (((name)), 0)) : (g_free) ((name));
(name) = 0;
}
} while (0);
Doing a little digging, the (void) is throwing away the result of the condition and triggering the error, like this:
I'm not sure exactly what to do about this since it is in layers of compatibility macros. Probably the correct fix is to the macro in libvips?
It looks like newer glib versions define
g_freeas a macro and it's conflicting withIM_FREEF?This is how the preprocessor expands it:
Doing a little digging, the
(void)is throwing away the result of the condition and triggering the error, like this:I'm not sure exactly what to do about this since it is in layers of compatibility macros. Probably the correct fix is to the macro in libvips?