[gtk/textbuf-serialize-fix-format-string: 1/2] GtkTextBufferSerialize: Add G_GNUC_PRINTF() to set_error()
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/textbuf-serialize-fix-format-string: 1/2] GtkTextBufferSerialize: Add G_GNUC_PRINTF() to set_error()
- Date: Sat, 27 Apr 2019 12:46:24 +0000 (UTC)
commit 0dcbbc3344b2f1f6c21f30e81f3a123c19d87858
Author: Felix Riemann <friemann gnome org>
Date: Sat Apr 27 14:34:07 2019 +0200
GtkTextBufferSerialize: Add G_GNUC_PRINTF() to set_error()
This allows the compiler to warn if format string and arguments do not match.
gtk/gtktextbufferserialize.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c
index 27fe43ab59..b6cf9b34e8 100644
--- a/gtk/gtktextbufferserialize.c
+++ b/gtk/gtktextbufferserialize.c
@@ -703,6 +703,14 @@ typedef struct
gboolean parsed_tags;
} ParseInfo;
+static void
+set_error (GError **err,
+ GMarkupParseContext *context,
+ int error_domain,
+ int error_code,
+ const char *format,
+ ...) G_GNUC_PRINTF(5, 6);
+
static void
set_error (GError **err,
GMarkupParseContext *context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]