[gtk+] textbufferserialize: declare set_error as G_GNUC_PRINTF
- From: Ben Iofel <beniofel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textbufferserialize: declare set_error as G_GNUC_PRINTF
- Date: Mon, 17 Oct 2016 14:44:01 +0000 (UTC)
commit 55e599c5617177878b44a49400f23c6ffcd4200b
Author: Ben Iofel <iofelben gmail com>
Date: Mon Oct 17 10:36:26 2016 -0400
textbufferserialize: declare set_error as G_GNUC_PRINTF
And fix a missing format argument
gtk/gtktextbufferserialize.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c
index 8baf780..961d809 100644
--- a/gtk/gtktextbufferserialize.c
+++ b/gtk/gtktextbufferserialize.c
@@ -671,6 +671,14 @@ set_error (GError **err,
int error_domain,
int error_code,
const char *format,
+ ...) G_GNUC_PRINTF (5, 6);
+
+static void
+set_error (GError **err,
+ GMarkupParseContext *context,
+ int error_domain,
+ int error_code,
+ const char *format,
...)
{
int line, ch;
@@ -795,7 +803,7 @@ check_id_or_name (GMarkupParseContext *context,
{
set_error (error, context,
G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
- _("<%s> element has invalid ID \"%s\""), attribute_values[i]);
+ _("<%s> element has invalid ID \"%s\""), element_name, attribute_values[i]);
return FALSE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]