diff options
-rw-r--r-- | meta/recipes-devtools/pkgconfig/pkgconfig/0001-gdate-suppress-string-format-literal-warning.patch | 34 | ||||
-rw-r--r-- | meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 1 |
2 files changed, 35 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 | ||
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb index d34f608f11..cd4dc8e7e8 100644 --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | |||
@@ -18,6 +18,7 @@ PV = "0.29+git${SRCPV}" | |||
18 | SRC_URI = "git://anongit.freedesktop.org/pkg-config \ | 18 | SRC_URI = "git://anongit.freedesktop.org/pkg-config \ |
19 | file://pkg-config-native.in \ | 19 | file://pkg-config-native.in \ |
20 | file://fix-glib-configure-libtool-usage.patch \ | 20 | file://fix-glib-configure-libtool-usage.patch \ |
21 | file://0001-gdate-suppress-string-format-literal-warning.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |