diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-05-08 15:53:14 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-05-08 23:37:40 +0200 |
commit | 741aa2a81684a89abc246431bef56198aece1693 (patch) | |
tree | 420c2192abc2a941c91073c3df78c8ae461a2f3b /tools | |
parent | 5b64e3532a15f7da18aa039ee83765a196cf1e0f (diff) | |
download | mtk-20170518-741aa2a81684a89abc246431bef56198aece1693.zip mtk-20170518-741aa2a81684a89abc246431bef56198aece1693.tar.gz mtk-20170518-741aa2a81684a89abc246431bef56198aece1693.tar.bz2 |
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>
Diffstat (limited to 'tools')
-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 0000000..6849299 --- /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 |