summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-06-05 13:28:08 +0200
committerKhem Raj <raj.khem@gmail.com>2020-06-08 13:58:03 -0700
commit25cda4f46bd178421dfe8088ff5f6815de3bda31 (patch)
treefd5267688b31fb076b9288c89f782ea0abe0df15 /meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch
parent14878083f0c7a04f1cd1236f3ab4cd571a1b6dc3 (diff)
downloadmeta-openembedded-25cda4f46bd178421dfe8088ff5f6815de3bda31.tar.gz
gtksourceview: remove forgotten files
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch')
-rw-r--r--meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch b/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch
deleted file mode 100644
index f9ae07763..000000000
--- a/meta-gnome/recipes-gnome/gtksourceview/gtksourceview2/suppress-string-format-literal-warning.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1Fix build error with gcc6:
2../../gtksourceview-2.10.5/gtksourceview/gtksourceprintcompositor.c: In function 'strdup_strftime':
3../../gtksourceview-2.10.5/gtksourceview/gtksourceprintcompositor.c:1951:3: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
4 tmplen = strftime (tmpbuf, tmpbufsize, locale_format, tm);
5 ^~~~~~
6
7Patch Reference:
8https://git.gnome.org/browse/glib/commit/?id=0817af40e8c74c721c30f6ef482b1f53d12044c7
9https://git.gnome.org/browse/glib/commit/?id=8cdbc7fb2c8c876902e457abe46ee18a0b134486
10
11Upstream-Status: Pending
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13
14diff -Nurp gtksourceview-2.10.5.orig/gtksourceview/gtksourceprintcompositor.c gtksourceview-2.10.5/gtksourceview/gtksourceprintcompositor.c
15--- gtksourceview-2.10.5.orig/gtksourceview/gtksourceprintcompositor.c 2016-07-01 13:11:43.631173762 +0800
16+++ gtksourceview-2.10.5/gtksourceview/gtksourceprintcompositor.c 2016-07-04 13:54:18.223726343 +0800
17@@ -1913,6 +1913,8 @@ setup_pango_layouts (GtkSourcePrintCompo
18 * GLIB - Library of useful routines for C programming
19 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */
20
21+#pragma GCC diagnostic push
22+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
23 static gchar *
24 strdup_strftime (const gchar *format, const struct tm *tm)
25 {
26@@ -1982,6 +1984,7 @@ strdup_strftime (const gchar *format, co
27
28 return convbuf;
29 }
30+#pragma GCC diagnostic pop
31
32 static gchar *
33 evaluate_format_string (GtkSourcePrintCompositor *compositor,