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>
This commit is contained in:
Tobias Mueller 2009-04-01 21:51:00 -04:00 committed by Matthias Clasen
parent 86aa49594f
commit 20df6b6e88
2 changed files with 2 additions and 2 deletions

View File

@ -1486,7 +1486,7 @@ g_unichar_validate
#if IN_HEADER(__GLIBINTL_H__) #if IN_HEADER(__GLIBINTL_H__)
#if IN_FILE(__G_UTILS_C__) #if IN_FILE(__G_UTILS_C__)
glib_gettext glib_gettext G_GNUC_FORMAT(1)
#endif #endif
#endif #endif

View File

@ -5,7 +5,7 @@
#error "config.h must be included prior to glibintl.h" #error "config.h must be included prior to glibintl.h"
#endif #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 #ifdef ENABLE_NLS