wok-current view glib/stuff/glib-2.41.2-ignore-format-nonliteral-warning.patch @ rev 25641

Up gnutls 3.8.3 (CVE-2024-0553, CVE-2024-0567)
author Stanislas Leduc <shann@slitaz.org>
date Tue Jan 16 22:11:37 2024 +0000 (5 months ago)
parents
children
line source
1 From 00148329967adb196138372771052a3f606a6ea3 Mon Sep 17 00:00:00 2001
2 From: coypu <coypu@sdf.org>
3 Date: Wed, 2 Mar 2016 19:43:10 +0200
4 Subject: [PATCH 2/2] gdate: Suppress string format literal warning
6 Newer versions of GCC emit an error here, but we know it's safe.
7 https://bugzilla.gnome.org/761550
8 ---
9 glib/gdate.c | 5 +++++
10 1 file changed, 5 insertions(+)
12 diff --git a/glib/gdate.c b/glib/gdate.c
13 index 4aece02..92c34d2 100644
14 --- a/glib/gdate.c
15 +++ b/glib/gdate.c
16 @@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate *d,
17 *
18 * Returns: number of characters written to the buffer, or 0 the buffer was too small
19 */
20 +#pragma GCC diagnostic push
21 +#pragma GCC diagnostic ignored "-Wformat-nonliteral"
22 +
23 gsize
24 g_date_strftime (gchar *s,
25 gsize slen,
26 @@ -2549,3 +2552,5 @@ g_date_strftime (gchar *s,
27 return retval;
28 #endif
29 }
30 +
31 +#pragma GCC diagnostic pop
32 --
33 2.7.1