bmx-ng / maxgui.mod

BlitzMax MaxGUI modules port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[maxguitextareascintilla.mod] Cannot build on newer GCCs

GWRon opened this issue · comments

With newer GCCs this is reported during compilation:

[ 52%] Compiling:LexBullant.cxx
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/maxgui.mod/maxguitextareascintilla.mod/scintilla/gtk/ScintillaGTKAccessible.cxx:66:
/home/ronny/Arbeit/Tools/BlitzMaxNG/mod/maxgui.mod/maxguitextareascintilla.mod/scintilla/gtk/ScintillaGTKAccessible.cxx: In function �GType scintilla_object_accessible_get_type(GType)�:
/usr/include/glib-2.0/glib/gatomic.h:113:19: error: argument 2 of �__atomic_load� must not be a pointer to a �volatile� type
  113 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro �g_atomic_pointer_get�
  260 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
/home/ronny/Arbeit/Tools/BlitzMaxNG/mod/maxgui.mod/maxguitextareascintilla.mod/scintilla/gtk/ScintillaGTKAccessible.cxx:1018:13: note: in expansion of macro �g_once_init_enter�
 1018 |         if (g_once_init_enter(&type_id_result)) {
      |             ^~~~~~~~~~~~~~~~~
Build Error: failed to compile (256) /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/maxgui.mod/maxguitextareascintilla.mod/scintilla/gtk/ScintillaGTKAccessible.cxx
Process complete

GCC: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)

commented

Fixed by b82a5d4