[gnome-applets/wip/muktupavels/werror] sticky-notes: fix -Wformat-nonliteral warning



commit 5806f3fed6538b10811807528342181d1bc438dc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 4 23:20:46 2020 +0300

    sticky-notes: fix -Wformat-nonliteral warning

 gnome-applets/sticky-notes/util.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnome-applets/sticky-notes/util.c b/gnome-applets/sticky-notes/util.c
index 0e4bc8d3a..b3b1bccdc 100644
--- a/gnome-applets/sticky-notes/util.c
+++ b/gnome-applets/sticky-notes/util.c
@@ -28,6 +28,8 @@
 
 /* Returns the current date in a customizable form, the default
  * looks like this: "Nov 30, '78" */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
 gchar * get_current_date(const gchar *format)
 {
        time_t clock = time(NULL);
@@ -45,6 +47,7 @@ gchar * get_current_date(const gchar *format)
 
        return date;
 }
+#pragma GCC diagnostic pop
 
 static Atom
 xstuff_atom_get (const char *atom_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]