001-glib-gdate-suppress-string-format-literal-warning.patch 493 B

123456789101112131415161718
  1. --- a/glib/glib/gdate.c
  2. +++ b/glib/glib/gdate.c
  3. @@ -2439,6 +2439,9 @@ win32_strftime_helper (const GDate *d,
  4. *
  5. * Returns: number of characters written to the buffer, or 0 the buffer was too small
  6. */
  7. +#pragma GCC diagnostic push
  8. +#pragma GCC diagnostic ignored "-Wformat-nonliteral"
  9. +
  10. gsize
  11. g_date_strftime (gchar *s,
  12. gsize slen,
  13. @@ -2549,3 +2552,5 @@ g_date_strftime (gchar *s,
  14. return retval;
  15. #endif
  16. }
  17. +
  18. +#pragma GCC diagnostic pop