X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=tools%2Fpkg-config%2Fpatches%2F001-glib-gdate-suppress-string-format-literal-warning.patch;fp=tools%2Fpkg-config%2Fpatches%2F001-glib-gdate-suppress-string-format-literal-warning.patch;h=6849299c475b22db26467024c34900c55c399f77;hb=741aa2a81684a89abc246431bef56198aece1693;hp=0000000000000000000000000000000000000000;hpb=5b64e3532a15f7da18aa039ee83765a196cf1e0f;p=openwrt%2Fstaging%2Fmkresin.git 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