[gnome-commander] src/gnome-cmd-hintbox.cc: Fix for -Wswitch-enum



commit 9a919831aa55588575dfdcc7ad07b5b91f353462
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sun Apr 23 13:26:26 2017 +0200

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

 src/gnome-cmd-hintbox.cc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-hintbox.cc b/src/gnome-cmd-hintbox.cc
index cf89287..d7a103f 100644
--- a/src/gnome-cmd-hintbox.cc
+++ b/src/gnome-cmd-hintbox.cc
@@ -257,6 +257,10 @@ gnome_cmd_label_set_attributes (GtkLabel *label, ...)
     {
       PangoAttrType   attr_type = ( PangoAttrType) va_arg (args, gint);
 
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-enum"
+#endif
       switch (attr_type)
         {
         case PANGO_ATTR_LANGUAGE:
@@ -335,6 +339,9 @@ gnome_cmd_label_set_attributes (GtkLabel *label, ...)
           attr = NULL;
           break;
         }
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
 
       if (attr)
         {


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