summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch b/meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch
new file mode 100644
index 0000000000..f61fa0ae6a
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/0002-tests-Ignore-y2k-warnings.patch
@@ -0,0 +1,42 @@
1From b06b22fecc7deda8c65e28670562ca2371e4e725 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 16 Apr 2016 13:43:54 -0700
4Subject: [PATCH 2/2] tests: Ignore y2k warnings
5
6silences
7| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c: In function 'test_strftime':
8| ../../../../../../../../workspace/sources/glib-2.0/glib/tests/gdatetime.c:1338:3: error: '%c' yields only last 2 digits of year in some locales [-Werror=format-y2k]
9| "a%a A%A b%b B%B c%c C%C d%d e%e F%F g%g G%G h%h H%H I%I j%j m%m M%M "
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13Upstream-Status: Submitted
14
15 glib/tests/gdatetime.c | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
19index 16a163c..e6062fc 100644
20--- a/glib/tests/gdatetime.c
21+++ b/glib/tests/gdatetime.c
22@@ -1326,6 +1326,9 @@ test_z (void)
23 g_time_zone_unref (tz);
24 }
25
26+#pragma GCC diagnostic push
27+#pragma GCC diagnostic ignored "-Wformat-y2k"
28+
29 static void
30 test_strftime (void)
31 {
32@@ -1351,6 +1354,7 @@ test_strftime (void)
33 }
34 #endif
35 }
36+#pragma GCC diagnostic pop
37
38 static void
39 test_find_interval (void)
40--
412.8.0
42