[gnome-commander] src/gnome-cmd-notebook.cc: fix for -Wswitch-default



commit 42768563a726154a10ba3481ffba7dcffe3ba3e7
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Mon Apr 24 13:22:55 2017 +0900

    src/gnome-cmd-notebook.cc: fix for -Wswitch-default
    
    src/gnome-cmd-notebook.cc:125:16: error: switch missing default case [-Werror=switch-default]

 src/gnome-cmd-notebook.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-notebook.cc b/src/gnome-cmd-notebook.cc
index cbbdd5f..8e48a06 100644
--- a/src/gnome-cmd-notebook.cc
+++ b/src/gnome-cmd-notebook.cc
@@ -148,6 +148,9 @@ int GnomeCmdNotebook::find_tab_num_at_pos(gint screen_x, gint screen_y) const
                     if (screen_y <= y_root + tab->allocation.y + tab->allocation.height)
                         return page_num;
                 }
+
+                break;
+            default:
                 break;
         }
     }


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