[geany/geany] 326c39: Add printf attribute to vprintf() functions
Colomban Wendling
git-noreply at xxxxx
Sat Oct 24 18:16:44 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 24 Oct 2015 18:16:44 UTC
Commit: 326c39f8d59769237b80463631d57bef58a5a162
https://github.com/geany/geany/commit/326c39f8d59769237b80463631d57bef58a5a162
Log Message:
-----------
Add printf attribute to vprintf() functions
This allows GCC to check vprintf() format, and makes
`-Wsuggest-attribute=format` happy.
Modified Paths:
--------------
tagmanager/mio/mio-file.c
tagmanager/mio/mio-memory.c
tagmanager/mio/mio.h
Modified: tagmanager/mio/mio-file.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -92,6 +92,7 @@ file_puts (MIO *mio,
return fputs (s, mio->impl.file.fp);
}
+G_GNUC_PRINTF (2, 0)
static gint
file_vprintf (MIO *mio,
const gchar *format,
Modified: tagmanager/mio/mio-memory.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -241,6 +241,7 @@ mem_puts (MIO *mio,
return rv;
}
+G_GNUC_PRINTF (2, 0)
static gint
mem_vprintf (MIO *mio,
const gchar *format,
Modified: tagmanager/mio/mio.h
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -145,7 +145,7 @@ struct _MIO {
const gchar *s);
gint (*v_vprintf) (MIO *mio,
const gchar *format,
- va_list ap);
+ va_list ap) G_GNUC_PRINTF (2, 0);
void (*v_clearerr) (MIO *mio);
gint (*v_eof) (MIO *mio);
gint (*v_error) (MIO *mio);
@@ -198,7 +198,7 @@ gint mio_puts (MIO *mio,
gint mio_vprintf (MIO *mio,
const gchar *format,
- va_list ap);
+ va_list ap) G_GNUC_PRINTF (2, 0);
gint mio_printf (MIO *mio,
const gchar *format,
...) G_GNUC_PRINTF (2, 3);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list