From 991d8a3a009e937f6ad6f5df6207969294f96b13 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 24 Dec 2012 16:50:37 -0800 Subject: [PATCH] c-vasprintf: Fix "empty declaration" warning reported by GCC. * lib/c-vasprintf.h: Remove stray semicolon. --- ChangeLog | 5 +++++ lib/c-vasprintf.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cfe09f388..211cc5959 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-12-24 Ben Pfaff + + c-vasprintf: Fix "empty declaration" warning reported by GCC. + * lib/c-vasprintf.h: Remove stray semicolon. + 2012-12-23 Paul Eggert gettext: avoid obsolete macro AM_PROG_MKDIR_P diff --git a/lib/c-vasprintf.h b/lib/c-vasprintf.h index 347679ef7..1b85de2cc 100644 --- a/lib/c-vasprintf.h +++ b/lib/c-vasprintf.h @@ -39,7 +39,7 @@ extern "C" { /* asprintf() and vasprintf(), but formatting takes place in the C locale, that is, the decimal point used in floating-point formatting directives is always '.'. */ -int c_asprintf (char **resultp, const char *format, ...); +int c_asprintf (char **resultp, const char *format, ...) _GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)); int c_vasprintf (char **resultp, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT ((__printf__, 2, 0)); -- 2.11.0