summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-12-06 09:27:15 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-12-06 09:29:08 +0100
commit804160db9fcaffdf88b68cf1935f24ac3cdc461d (patch)
tree17db3375cfb60cec5ea72137b46ec8e9e7c26333
parent6b03920e39bc3900148d02ea5c2ddc13d6e91091 (diff)
downloadvala-804160db9fcaffdf88b68cf1935f24ac3cdc461d.tar.gz
codegen: Don't attribute *_get_type_once() with G_GNUC_CONST
Follow up on 6b03920e39bc3900148d02ea5c2ddc13d6e91091
-rw-r--r--codegen/valatyperegisterfunction.vala2
1 files changed, 1 insertions, 1 deletions
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;
}