diff --git a/ChangeLog b/ChangeLog index 84c0841ac..cf6742f45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-16 Christian Persch + + Bug 539123 – annotate g_d[n]gettext with G_GNUC_FORMAT + + * glib/gstrfuncs.h: + * glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT. + 2008-06-19 Tor Lillqvist Bug 539074 - Cannot get exit status with g_spawn_command_line_sync() diff --git a/glib/glib.symbols b/glib/glib.symbols index db14b7c87..f523a77fa 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -1149,8 +1149,8 @@ g_strdown #endif g_strv_length g_strip_context G_GNUC_FORMAT(1) -g_dgettext -g_dngettext +g_dgettext G_GNUC_FORMAT(2) +g_dngettext G_GNUC_FORMAT(3) g_dpgettext G_GNUC_FORMAT(2) #endif #endif diff --git a/glib/gstrfuncs.h b/glib/gstrfuncs.h index 8f53e8ea0..f58a28568 100644 --- a/glib/gstrfuncs.h +++ b/glib/gstrfuncs.h @@ -248,12 +248,12 @@ G_CONST_RETURN gchar *g_strip_context (const gchar *msgid, const gchar *msgval) G_GNUC_FORMAT(1); G_CONST_RETURN gchar *g_dgettext (const gchar *domain, - const gchar *msgid); + const gchar *msgid) G_GNUC_FORMAT(2); G_CONST_RETURN gchar *g_dngettext (const gchar *domain, const gchar *msgid, const gchar *msgid_plural, - gulong n); + gulong n) G_GNUC_FORMAT(3); G_CONST_RETURN gchar *g_dpgettext (const gchar *domain, const gchar *msgctxtid, gsize msgidoffset) G_GNUC_FORMAT(2);