[gnome-commander] viewer-widget.c: fix for switch-default
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] viewer-widget.c: fix for switch-default
- Date: Fri, 28 Apr 2017 21:36:25 +0000 (UTC)
commit a0297b0ce88e756a17819fe2348dfc8c1208f392
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Wed Apr 19 15:56:19 2017 +0900
viewer-widget.c: fix for switch-default
src/intviewer/viewer-widget.cc:364:12: error: switch missing default case [-Werror=switch-default]
likewise
src/intviewer/viewer-widget.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/intviewer/viewer-widget.cc b/src/intviewer/viewer-widget.cc
index c685d45..f5a783b 100644
--- a/src/intviewer/viewer-widget.cc
+++ b/src/intviewer/viewer-widget.cc
@@ -381,6 +381,9 @@ void gviewer_set_display_mode(GViewer *obj, VIEWERDISPLAYMODE mode)
case DISP_MODE_IMAGE:
client = obj->priv->iscrollbox;
break;
+
+ default:
+ break;
}
if (client != obj->priv->last_client)
@@ -404,6 +407,9 @@ void gviewer_set_display_mode(GViewer *obj, VIEWERDISPLAYMODE mode)
case DISP_MODE_IMAGE:
image_render_notify_status_changed(obj->priv->imgr);
break;
+
+ default:
+ break;
}
gtk_widget_show (client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]