You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
809 B

  1. From 0817af40e8c74c721c30f6ef482b1f53d12044c7 Mon Sep 17 00:00:00 2001
  2. From: coypu <coypu@sdf.org>
  3. Date: Mon, 8 Feb 2016 00:06:06 +0200
  4. Subject: gdate: Suppress string format literal warning
  5. Newer versions of GCC emit an error here, but we know it's safe.
  6. https://bugzilla.gnome.org/761550
  7. ---
  8. glib/gdate.c | 3 +++
  9. 1 file changed, 3 insertions(+)
  10. --- a/glib/gdate.c
  11. +++ b/glib/gdate.c
  12. @@ -2497,7 +2497,10 @@ g_date_strftime (gchar *s,
  13. * recognize whether strftime actually failed or just returned "".
  14. */
  15. tmpbuf[0] = '\1';
  16. + #pragma GCC diagnostic push
  17. + #pragma GCC diagnostic ignored "-Wformat-nonliteral"
  18. tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
  19. + #pragma GCC diagnostic pop
  20. if (tmplen == 0 && tmpbuf[0] != '\0')
  21. {