[vala/staging] codegen: Don't attribute *_get_type_once() with G_GNUC_CONST



commit 804160db9fcaffdf88b68cf1935f24ac3cdc461d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Dec 6 09:27:15 2019 +0100

    codegen: Don't attribute *_get_type_once() with G_GNUC_CONST
    
    Follow up on 6b03920e39bc3900148d02ea5c2ddc13d6e91091

 codegen/valatyperegisterfunction.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]