[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-user-actions.cc: Fix for -Wswitch-enum



commit bdf810cde7e541affd4e77064ce8f81746263d42
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Mon Apr 24 22:37:52 2017 +0200

    src/gnome-cmd-user-actions.cc: Fix for -Wswitch-enum

 src/gnome-cmd-user-actions.cc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index cffdbda..c9a7ce7 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1064,6 +1064,10 @@ void file_exit (GtkMenuItem *menuitem, gpointer not_used)
 {
     gint x, y;
 
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-enum"
+#endif
     switch (gnome_cmd_data.main_win_state)
     {
         case GDK_WINDOW_STATE_MAXIMIZED:
@@ -1076,6 +1080,9 @@ void file_exit (GtkMenuItem *menuitem, gpointer not_used)
             gnome_cmd_data_set_main_win_pos (x, y);
             break;
     }
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
 
     gtk_widget_destroy (*main_win);
 }


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