[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-user-actions.cc: Remove warnings for -Wormat-nonliteral



commit 8282c527c6e83e125220613ad8c39bb7f9a4ca87
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Mon Apr 24 22:00:28 2017 +0200

    src/gnome-cmd-user-actions.cc: Remove warnings for -Wormat-nonliteral

 src/gnome-cmd-user-actions.cc |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 9acd1ce..cffdbda 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1013,7 +1013,14 @@ void file_diff (GtkMenuItem *menuitem, gpointer not_used)
 
     if (!files_to_differ.empty())
     {
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
         gchar *cmd = g_strdup_printf (gnome_cmd_data.options.differ, files_to_differ.c_str(), "");
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
 
         run_command (cmd);
 
@@ -1038,7 +1045,14 @@ void file_sync_dirs (GtkMenuItem *menuitem, gpointer not_used)
     append_real_path (s, GNOME_CMD_FILE (active_fs->get_directory()));
     append_real_path (s, GNOME_CMD_FILE (inactive_fs->get_directory()));
 
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
     gchar *cmd = g_strdup_printf (gnome_cmd_data.options.differ, s.c_str(), "");
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
 
     run_command (cmd);
 


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