build: Remove G_GNUC_CONST from ostree-enumtypes.h.template
authorcorrectmost <134317971+correctmost@users.noreply.github.com>
Sat, 8 Aug 2026 11:13:36 +0000 (07:13 -0400)
committercorrectmost <134317971+correctmost@users.noreply.github.com>
Sat, 8 Aug 2026 11:13:36 +0000 (07:13 -0400)
get_type functions have global side effects, which makes them
ineligible for the G_GNUC_CONST attribute.

See https://gitlab.gnome.org/GNOME/glib/-/commit/01682955 for
further details.

Completes: e87513c5

src/libostree/ostree-enumtypes.h.template

index 5043295b6229aa18c80371b878cb686f2266e1e0..4a4028fd810dc2c4164a62d483cc3dde20c37931 100644 (file)
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
 
 /*** BEGIN enumeration-production ***/
 #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (_@enum_name@_get_type ())
-GType _@enum_name@_get_type (void) G_GNUC_CONST;
+GType _@enum_name@_get_type (void);
 
 /*** END enumeration-production ***/