From 97072bb47148abc7ab94217a13e82f4281344875 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 21 Apr 2013 18:56:19 +0200 Subject: Add printf attribute This fixes a compiler warning when using -Wmissing-format-attribute. https://bugzilla.gnome.org/show_bug.cgi?id=698521 --- girepository/gdump.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'girepository/gdump.c') diff --git a/girepository/gdump.c b/girepository/gdump.c index 7e02d391..88942f3a 100644 --- a/girepository/gdump.c +++ b/girepository/gdump.c @@ -37,6 +37,9 @@ #include +static void +escaped_printf (GOutputStream *out, const char *fmt, ...) G_GNUC_PRINTF (2, 3); + static void escaped_printf (GOutputStream *out, const char *fmt, ...) { -- cgit v1.2.1 From bc6ccdeb603280430863e60683694419f8572222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20K=C3=A5gedal=20Reimer?= Date: Wed, 5 Jun 2013 13:28:30 +0200 Subject: g_irepository_dump: Update doc to match code The input file no longer only consists of names of get_type-functions, instead begins with either "get-type:" or "error-quark:". https://bugzilla.gnome.org/show_bug.cgi?id=701639 --- girepository/gdump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'girepository/gdump.c') diff --git a/girepository/gdump.c b/girepository/gdump.c index 88942f3a..a72841fe 100644 --- a/girepository/gdump.c +++ b/girepository/gdump.c @@ -425,8 +425,10 @@ dump_error_quark (GQuark quark, const char *symbol, GOutputStream *out) * * Argument specified is a comma-separated pair of filenames; i.e. of * the form "input.txt,output.xml". The input file should be a - * UTF-8 Unix-line-ending text file, with each line containing the name - * of a GType _get_type function. + * UTF-8 Unix-line-ending text file, with each line containing either + * "get-type:" followed by the name of a GType _get_type function, or + * "error-quark:" followed by the name of an error quark function. No + * extra whitespace is allowed. * * The output file should already exist, but be empty. This function will * overwrite its contents. -- cgit v1.2.1