[glib] Mark glib_gettext as string translation function
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glib] Mark glib_gettext as string translation function
- Date: Wed, 1 Apr 2009 21:52:29 -0400 (EDT)
commit 20df6b6e888a1aed596c8c60ed7427708a56a453
Author: Tobias Mueller <gnome-bugs auftrags-killer org>
Date: Wed Apr 1 21:51:00 2009 -0400
Mark glib_gettext as string translation function
Make glib_gettext with G_GNUC_FORMAT to avoid warnings with
-Wformat -Wformat-nonliteral.
Signed-off-by: Matthias Clasen <mclasen redhat com>
---
glib/glib.symbols | 2 +-
glib/glibintl.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/glib/glib.symbols b/glib/glib.symbols
index 333164f..a8b7b44 100644
--- a/glib/glib.symbols
+++ b/glib/glib.symbols
@@ -1486,7 +1486,7 @@ g_unichar_validate
#if IN_HEADER(__GLIBINTL_H__)
#if IN_FILE(__G_UTILS_C__)
-glib_gettext
+glib_gettext G_GNUC_FORMAT(1)
#endif
#endif
diff --git a/glib/glibintl.h b/glib/glibintl.h
index 3116f85..47a7910 100644
--- a/glib/glibintl.h
+++ b/glib/glibintl.h
@@ -5,7 +5,7 @@
#error "config.h must be included prior to glibintl.h"
#endif
-G_CONST_RETURN gchar *glib_gettext (const gchar *str);
+G_CONST_RETURN gchar *glib_gettext (const gchar *str) G_GNUC_FORMAT(1);
#ifdef ENABLE_NLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]