[gnome-commander/ConvertWarningsToErrors] Suppress warnings about missing switch cases



commit 2de85e37d3ac5ad3b800aed368f1a86dd7c8cf5a
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Apr 22 11:48:33 2017 +0200

    Suppress warnings about missing switch cases

 src/gnome-cmd-clist.cc |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-clist.cc b/src/gnome-cmd-clist.cc
index dc0c69c..2bd8eaf 100644
--- a/src/gnome-cmd-clist.cc
+++ b/src/gnome-cmd-clist.cc
@@ -168,7 +168,10 @@ draw_cell_pixmap (GdkWindow    *window,
     return x + MAX (width, 0);
 }
 
-
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-enum"
+#endif
 static PangoLayout *my_gtk_clist_create_cell_layout (GtkCList *clist, GtkCListRow *clist_row, gint column)
 {
     PangoLayout *layout;
@@ -202,6 +205,9 @@ static PangoLayout *my_gtk_clist_create_cell_layout (GtkCList *clist, GtkCListRo
             return NULL;
     }
 }
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
 
 
 static void draw_row (GtkCList *clist, GdkRectangle *area, gint row, GtkCListRow *clist_row)


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