Commit 20df6b6e authored by Tobias Mueller's avatar Tobias Mueller Committed by Matthias Clasen
Browse files

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's avatarMatthias Clasen <mclasen@redhat.com>
parent 86aa4959
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment