From: Rico Tzschichholz Date: Fri, 6 Dec 2019 08:27:15 +0000 (+0100) Subject: codegen: Don't attribute *_get_type_once() with G_GNUC_CONST X-Git-Tag: 0.47.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=804160db9fcaffdf88b68cf1935f24ac3cdc461d;p=thirdparty%2Fvala.git codegen: Don't attribute *_get_type_once() with G_GNUC_CONST Follow up on 6b03920e39bc3900148d02ea5c2ddc13d6e91091 --- diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala index 5a7b2cf73..eac326312 100644 --- a/codegen/valatyperegisterfunction.vala +++ b/codegen/valatyperegisterfunction.vala @@ -79,7 +79,7 @@ public abstract class Vala.TypeRegisterFunction { fun.is_declaration = false; fun_once = new CCodeFunction ("%s_once".printf (fun.name), "GType"); - fun_once.modifiers = CCodeModifiers.CONST | CCodeModifiers.STATIC; + fun_once.modifiers = CCodeModifiers.STATIC; if (context.require_glib_version (2, 58)) { fun_once.modifiers |= CCodeModifiers.NO_INLINE; }