pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
x11/vte3 build failure with gcc11
This package fails to build on Linux with gcc11 due to incorrect usage
of `volatile`. Ive attached a patch which fixes the issue and has
already been upstreamed in vte.
Thanks.
--- src/vtetypebuiltins.cc.template.orig Tue Jan 25 14:40:57 2022
+++ src/vtetypebuiltins.cc.template Tue Jan 25 14:43:52 2022
@@ -11,9 +11,9 @@
GType
@enum_name@_get_type (void)
{
- static volatile gsize g_define_type_id__volatile = 0;
+ static gsize g_define_type_id = 0;
- if (g_once_init_enter (&g_define_type_id__volatile)) {
+ if (g_once_init_enter (&g_define_type_id)) {
static const G@Type@Value values[] = {
/*** END value-header ***/
@@ -24,13 +24,13 @@
/*** BEGIN value-tail ***/
{ 0, NULL, NULL }
};
- GType g_define_type_id = \
+ GType type_id = \
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
- g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
+ g_once_init_leave (&g_define_type_id, type_id);
}
- return g_define_type_id__volatile;
+ return g_define_type_id;
}
/*** END value-tail ***/
Home |
Main Index |
Thread Index |
Old Index