summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch')
-rw-r--r--meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch
new file mode 100644
index 000000000..6118b679a
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/0001-test-widget.c-fix-non-literal-format-string-issues.patch
@@ -0,0 +1,31 @@
1From 0781b218beb8ba160ea223ff3d74a4fa2abf86fa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Apr 2017 16:21:14 -0700
4Subject: [PATCH] test-widget.c: fix non-literal format string issues
5
6clang errors out when using -Werror=format-nonliteral
7since the definition of g_strdup_vprintf() from glib-2.0
8is using va_list and clang seems to still warn where as
9gcc doesn't do that for va_list arguments
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 tests/test-widget.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/tests/test-widget.c b/tests/test-widget.c
17index 46f5f4e..3f2e60f 100644
18--- a/tests/test-widget.c
19+++ b/tests/test-widget.c
20@@ -260,7 +260,7 @@ static const gchar *buffer_ui_description =
21
22 /* File loading code ----------------------------------------------------------------- */
23
24-static void
25+static void G_GNUC_PRINTF (2, 0)
26 error_dialog (GtkWindow *parent, const gchar *msg, ...)
27 {
28 va_list ap;
29--
302.12.2
31