]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/pkg-config-0.29-glib-compile-fix.patch
fontconfig: Fix build with glibc >= 2.25
[ipfire-2.x.git] / src / patches / pkg-config-0.29-glib-compile-fix.patch
CommitLineData
9c59597b
MT
1From 0817af40e8c74c721c30f6ef482b1f53d12044c7 Mon Sep 17 00:00:00 2001
2From: coypu <coypu@sdf.org>
3Date: Mon, 8 Feb 2016 00:06:06 +0200
4Subject: gdate: Suppress string format literal warning
5
6Newer versions of GCC emit an error here, but we know it's safe.
7https://bugzilla.gnome.org/761550
8---
9 glib/gdate.c | 3 +++
10 1 file changed, 3 insertions(+)
11
12diff --git a/glib/gdate.c b/glib/gdate.c
13index 4aece02..cdc735c 100644
14--- a/glib/gdate.c
15+++ b/glib/gdate.c
16@@ -2494,7 +2494,10 @@ g_date_strftime (gchar *s,
17 * recognize whether strftime actually failed or just returned "".
18 */
19 tmpbuf[0] = '\1';
20+ #pragma GCC diagnostic push
21+ #pragma GCC diagnostic ignored "-Wformat-nonliteral"
22 tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
23+ #pragma GCC diagnostic pop
24
25 if (tmplen == 0 && tmpbuf[0] != '\0')
26 {
27--
28cgit v0.12
29