fix fallthrough bug

This commit is contained in:
Daniel Micay 2012-12-13 10:26:26 -05:00
parent aa568da12f
commit 7c6d8ac0e3
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,10 @@ ifeq (${CXX}, g++)
CXXFLAGS += -Wno-missing-field-initializers CXXFLAGS += -Wno-missing-field-initializers
endif endif
ifeq (${CXX}, clang++)
CXXFLAGS += -Wimplicit-fallthrough
endif
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS} LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}} LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}

View File

@ -695,6 +695,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
gtk_widget_show(info->panel.da); gtk_widget_show(info->panel.da);
overlay_show(&info->panel, overlay_mode::urlselect, false); overlay_show(&info->panel, overlay_mode::urlselect, false);
exit_command_mode(vte, &info->select); exit_command_mode(vte, &info->select);
return TRUE;
case GDK_KEY_c: case GDK_KEY_c:
vte_terminal_copy_clipboard(vte); vte_terminal_copy_clipboard(vte);
return TRUE; return TRUE;