Author: luka
Date: 2016-05-11 00:36:51 +0200 (Wed, 11 May 2016)
New Revision: 49342
Added:
trunk/tools/pkg-config/patches/
trunk/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
Log:
tools: pkg-config: fix build with GCC 6
Fixes the following error:
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked
[-Werror=format-nonliteral]
tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
^~~~~~
Signed-off-by: Matthias Schiffer <[email protected]>
Added:
trunk/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
===================================================================
---
trunk/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
(rev 0)
+++
trunk/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch
2016-05-10 22:36:51 UTC (rev 49342)
@@ -0,0 +1,18 @@
+--- a/glib/glib/gdate.c
++++ b/glib/glib/gdate.c
+@@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate *d,
+ *
+ * Returns: number of characters written to the buffer, or 0 the buffer was
too small
+ */
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-nonliteral"
++
+ gsize
+ g_date_strftime (gchar *s,
+ gsize slen,
+@@ -2549,3 +2552,5 @@ g_date_strftime (gchar *s,
+ return retval;
+ #endif
+ }
++
++#pragma GCC diagnostic pop
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits