[nautilus-sendto] sendto: fix jhbuild build failure on recent GCC



commit 86fd0a3c877145b4d66dcfa57fbdafd5acddba15
Author: Christian Hergert <christian hergert me>
Date:   Tue Apr 12 17:57:25 2016 -0700

    sendto: fix jhbuild build failure on recent GCC
    
    This appears to be safe, although should probably be rewritten to avoid
    the use of non-literals. Either way, its breaking jhbuilds so might as
    well set GCC ignore.

 src/nautilus-sendto.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-sendto.c b/src/nautilus-sendto.c
index c7963e2..9c8d652 100644
--- a/src/nautilus-sendto.c
+++ b/src/nautilus-sendto.c
@@ -380,8 +380,11 @@ send_files (NautilusSendto *nst)
                get_evo_mailto (mailto, nst->file_list);
        }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
        cmd = g_strdup_printf (nst->mail_cmd, mailto->str);
        g_string_free (mailto, TRUE);
+#pragma GCC diagnostic pop
 
        g_debug ("Mailer type: %d", nst->type);
        g_debug ("Command: %s", cmd);


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