Closed jamesjer closed 1 month ago
I’ve observed the same error with Clang 16.0.6:
ml_gtk.c:236:78: error: incompatible function pointer types passing 'value (const char )' (aka 'long (const char )') to parameter of type 'value_in' (aka 'long ()(void )') [-Wincompatible-function-pointer-types] { return Val_GList(gtk_style_context_list_classes(GtkStyleContext_val(ctx)), Val_string); } ^
~~~~~ ./wrappers.h:422:20: note: expanded from macro 'Val_string'define Val_string copy_string_check
^
~~~~ ./ml_glib.h:30:50: note: passing argument to parameter here CAMLexport value Val_GList (GList *list, value_in); ^
Already fixed in fix to #178.
The Fedora project is starting to build packages with a GCC 14 prerelease. It is pickier about incompatible types than previous versions. Building lablgtk3 3.1.4 yields this error:
Completely unrelated, but I would also like to point out that dune-project still has
(version 3.1.2)
.