From ad6626fc0d697e39b0e5a82855524f22bcc90d6f Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sun, 28 Dec 2008 16:20:52 +0000 Subject: [PATCH] Use G_STRFUNC instead of G_GNUC_FUNCTION, which doesn't work for modern compilers. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3427 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/stash.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/stash.c b/src/stash.c index 2b5901d1..d5bd60a7 100644 --- a/src/stash.c +++ b/src/stash.c @@ -212,8 +212,8 @@ static void keyfile_action(SettingAction action, GeanyPrefGroup *group, GKeyFile if (entry->setting_type == G_TYPE_STRV) handle_strv_setting(group, entry, keyfile, action); else - g_warning("Unhandled type for %s::%s in %s!", group->name, entry->key_name, - G_GNUC_FUNCTION); + g_warning("Unhandled type for %s::%s in %s()!", group->name, entry->key_name, + G_STRFUNC); } } } @@ -442,7 +442,7 @@ get_widget(GtkWidget *owner, gpointer widget_id) } if (!GTK_IS_WIDGET(widget)) { - g_warning("Unknown widget in %s!", G_GNUC_FUNCTION); + g_warning("Unknown widget in %s()!", G_STRFUNC); return NULL; } return widget; @@ -512,8 +512,8 @@ static void pref_action(PrefAction action, GeanyPrefGroup *group, GtkWidget *own widget = get_widget(owner, entry->widget_id); if (!widget) { - g_warning("Unknown widget for %s::%s in %s!", group->name, entry->key_name, - G_GNUC_FUNCTION); + g_warning("Unknown widget for %s::%s in %s()!", group->name, entry->key_name, + G_STRFUNC); continue; } @@ -529,8 +529,8 @@ static void pref_action(PrefAction action, GeanyPrefGroup *group, GtkWidget *own else if (entry->widget_type == GTK_TYPE_ENTRY) handle_entry(widget, entry, action); else - g_warning("Unhandled type for %s::%s in %s!", group->name, entry->key_name, - G_GNUC_FUNCTION); + g_warning("Unhandled type for %s::%s in %s()!", group->name, entry->key_name, + G_STRFUNC); } }