diff options
author | Luka Perkov <luka@openwrt.org> | 2016-05-10 22:36:51 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:30:14 +0200 |
commit | 260814a86a2830d717889584910d3f4f691f796d (patch) | |
tree | 45ae163474388470950f4133aefa714b7bee7d2e /tools/pkg-config | |
parent | 7dc72ab84fe954fa3b88fc1963fd0d4395d22e4c (diff) | |
download | master-187ad058-260814a86a2830d717889584910d3f4f691f796d.tar.gz master-187ad058-260814a86a2830d717889584910d3f4f691f796d.tar.bz2 master-187ad058-260814a86a2830d717889584910d3f4f691f796d.zip |
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 <mschiffer@universe-factory.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49342 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/pkg-config')
-rw-r--r-- | tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch b/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch new file mode 100644 index 0000000000..6849299c47 --- /dev/null +++ b/tools/pkg-config/patches/001-glib-gdate-suppress-string-format-literal-warning.patch @@ -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 |