[gnome-commander] src/gnome-cmd-user-actions.cc: Fix for -Wswitch-enum
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] src/gnome-cmd-user-actions.cc: Fix for -Wswitch-enum
- Date: Fri, 28 Apr 2017 21:43:48 +0000 (UTC)
commit d40574cad599cd842ecb2f136711e6c473521830
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]