From 21bbad188f83c828aee254191939d4568b9b7c19 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Sep 2005 04:01:03 +0000 Subject: [PATCH] Move a few strings from .data to .rodata. 2005-09-10 Matthias Clasen * gtype.c (INVALID_RECURSION, check_type_name_I): Move a few strings from .data to .rodata. --- gobject/gtype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobject/gtype.c b/gobject/gtype.c index 5fe73bc..c67ed6d 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -74,7 +74,7 @@ static GStaticRWLock type_rw_lock = G_STATIC_RW_LOCK_INIT; #define G_WRITE_UNLOCK(rw_lock) g_static_rw_lock_writer_unlock (rw_lock) #endif #define INVALID_RECURSION(func, arg, type_name) G_STMT_START{ \ - static const gchar *_action = " invalidly modified type "; \ + static const gchar _action[] = " invalidly modified type "; \ gpointer _arg = (gpointer) (arg); const gchar *_tname = (type_name), *_fname = (func); \ if (_arg) \ g_error ("%s(%p)%s`%s'", _fname, _arg, _action, _tname); \ @@ -583,7 +583,7 @@ check_plugin_U (GTypePlugin *plugin, static gboolean check_type_name_I (const gchar *type_name) { - static const gchar *extra_chars = "-_+"; + static const gchar extra_chars[] = "-_+"; const gchar *p = type_name; gboolean name_valid; -- 2.7.4