[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-hintbox.cc: Fix for -Wswitch-enum
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-hintbox.cc: Fix for -Wswitch-enum
- Date: Sun, 23 Apr 2017 11:26:44 +0000 (UTC)
commit 564c5757912a8237f146255670e3a00d9cf1ad60
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]