bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c-vasprintf: Fix "empty declaration" warning reported by GCC.


From: Ben Pfaff
Subject: c-vasprintf: Fix "empty declaration" warning reported by GCC.
Date: Mon, 24 Dec 2012 16:51:46 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

I already pushed this as an obvious fix.

--8<--------------------------cut here-------------------------->8--

From: Ben Pfaff <address@hidden>
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 cfe09f3..211cc59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-24  Ben Pfaff  <address@hidden>
+
+       c-vasprintf: Fix "empty declaration" warning reported by GCC.
+       * lib/c-vasprintf.h: Remove stray semicolon.
+
 2012-12-23  Paul Eggert  <address@hidden>
 
        gettext: avoid obsolete macro AM_PROG_MKDIR_P
diff --git a/lib/c-vasprintf.h b/lib/c-vasprintf.h
index 347679e..1b85de2 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));
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]