diff options
Diffstat (limited to 'meta/recipes-devtools/pkgconfig/pkgconfig')
-rw-r--r-- | meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-suppress-string-format-literal-warning.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-suppress-string-format-literal-warning.patch b/meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-suppress-string-format-literal-warning.patch new file mode 100644 index 0000000000..830d3d2305 --- /dev/null +++ b/meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-suppress-string-format-literal-warning.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | The upstream patch would not apply cleanly, so perform the same changes. | ||
2 | |||
3 | Original patch header: | ||
4 | From 00148329967adb196138372771052a3f606a6ea3 Mon Sep 17 00:00:00 2001 | ||
5 | From: coypu <coypu@sdf.org> | ||
6 | Date: Wed, 2 Mar 2016 19:43:10 +0200 | ||
7 | Subject: [PATCH 2/2] gdate: Suppress string format literal warning | ||
8 | |||
9 | Newer versions of GCC emit an error here, but we know it's safe. | ||
10 | https://bugzilla.gnome.org/761550 | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> | ||
15 | |||
16 | Index: git/glib/glib/gdate.c | ||
17 | =================================================================== | ||
18 | --- git.orig/glib/glib/gdate.c | ||
19 | +++ git/glib/glib/gdate.c | ||
20 | @@ -2439,6 +2439,8 @@ win32_strftime_helper (const GDate * | ||
21 | * | ||
22 | * Returns: number of characters written to the buffer, or 0 the buffer was too small | ||
23 | */ | ||
24 | +#pragma GCC diagnostic push | ||
25 | +#pragma GCC diagnostic ignored "-Wformat-nonliteral" | ||
26 | gsize | ||
27 | g_date_strftime (gchar *s, | ||
28 | gsize slen, | ||
29 | @@ -2549,3 +2551,5 @@ g_date_strftime (gchar *s, | ||
30 | return retval; | ||
31 | #endif | ||
32 | } | ||
33 | + | ||
34 | +#pragma GCC diagnostic pop | ||