HomeFreeBSD

graphics/inkscape: unbreak with glib 2.76

Description

graphics/inkscape: unbreak with glib 2.76

src/ui/widget/selected-style.cpp:111:6: error: statement expression not allowed at file scope

{g_strdup("application/x-oswb-color"), 0, APP_OSWB_COLOR}
 ^

/usr/local/include/glib-2.0/glib/gstrfuncs.h:209:6: note: expanded from macro 'g_strdup'

(G_LIKELY ((STR) != NULL) ?                                               \
 ^

/usr/local/include/glib-2.0/glib/gmacros.h:1245:43: note: expanded from macro 'G_LIKELY'
#define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))

^

/usr/local/include/glib-2.0/glib/gmacros.h:1244:31: note: expanded from macro '_G_BOOLEAN_EXPR'
#define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (COUNTER, expr)

^

/usr/local/include/glib-2.0/glib/gmacros.h:1236:19: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
G_GNUC_EXTENSION ({ \

^

src/ui/widget/selected-style.cpp:111:6: error: statement expression not allowed at file scope
/usr/local/include/glib-2.0/glib/gstrfuncs.h:210:24: note: expanded from macro 'g_strdup'

G_GNUC_EXTENSION ({                                                     \
                 ^

src/ui/widget/selected-style.cpp:114:40: error: invalid application of 'sizeof' to an incomplete type 'const GtkTargetEntry []'
static guint nui_drop_target_entries = G_N_ELEMENTS(ui_drop_target_entries);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/glib-2.0/glib/gmacros.h:952:36: note: expanded from macro 'G_N_ELEMENTS'
#define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))

^~~~~

PR: 270087
Reported by: antoine (via exp-run)

Details

Provenance
jbeichAuthored on Mar 16 2023, 12:38 PM
Parents
R11:7fa8043555ff: editors/abiword: unbreak with glib 2.76
Branches
Unknown
Tags
Unknown