mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-13 11:58:30 +01:00
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:
committed by
Matthias Clasen
parent
86aa49594f
commit
20df6b6e88
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user