[glib] Convince gcc to compile this code



commit 3c861237fb765f477983b19031abf0f68ea4fae4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jul 16 23:22:33 2016 -0400

    Convince gcc to compile this code
    
    It shouldn't be that hard.

 gio/glocalfile.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index b3a7d25..f6114f9 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -956,6 +956,8 @@ get_filesystem_readonly (GFileInfo  *info,
 
 #endif /* G_OS_WIN32 */
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
 static void
 g_set_io_error (GError      **error,
                 const gchar  *msg,
@@ -970,6 +972,7 @@ g_set_io_error (GError      **error,
                msg, display_name, g_strerror (errsv));
   g_free (display_name);
 }
+#pragma GCC diagnostic pop
 
 static GFileInfo *
 g_local_file_query_filesystem_info (GFile         *file,


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