From: Ben Pfaff Date: Tue, 25 Dec 2012 00:50:37 +0000 (-0800) Subject: c-vasprintf: Fix "empty declaration" warning reported by GCC. X-Git-Tag: v0.1~310 X-Git-Url: https://erislabs.net/gitweb/?a=commitdiff_plain;h=991d8a3a009e937f6ad6f5df6207969294f96b13;p=gnulib.git c-vasprintf: Fix "empty declaration" warning reported by GCC. * lib/c-vasprintf.h: Remove stray semicolon. --- 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));