Fix implicit-fallthrough warning
This commit is contained in:
@@ -218,7 +218,7 @@ void wxAuiGtkTabArt::DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& p
|
||||
if (!page.active)
|
||||
tab_rect.y += 2 * GTK_NOTEBOOK (wxGTKPrivate::GetNotebookWidget())->tab_hborder;
|
||||
gap_rect_y = tab_rect.y + tab_rect.height - GTK_NOTEBOOK (wxGTKPrivate::GetNotebookWidget())->tab_hborder / 2;
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
case wxAUI_NB_BOTTOM:
|
||||
gap_start = tab_rect.x - GTK_NOTEBOOK (wxGTKPrivate::GetNotebookWidget())->tab_vborder / 2;
|
||||
gap_width = tab_rect.width;
|
||||
|
@@ -148,8 +148,8 @@ wxChar wxTextInputStream::GetChar()
|
||||
// remember the second one for the next call, as there is no
|
||||
// way to fit both of them into a single wxChar in this case.
|
||||
m_lastWChar = wbuf[1];
|
||||
#endif // SIZEOF_WCHAR_T == 2
|
||||
wxFALLTHROUGH;
|
||||
#endif // SIZEOF_WCHAR_T == 2
|
||||
|
||||
case 1:
|
||||
m_validBegin = inlen + 1;
|
||||
|
@@ -288,7 +288,7 @@ private:
|
||||
case wxTE_HT_BELOW:
|
||||
// This shouldn't happen for single line control.
|
||||
wxFAIL_MSG( "Unreachable" );
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxTE_HT_BEYOND:
|
||||
// Select the last field.
|
||||
|
@@ -393,7 +393,7 @@ void wxAnyButton::DoSetBitmapPosition(wxDirection dir)
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG( "invalid position" );
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxLEFT:
|
||||
gtkpos = GTK_POS_LEFT;
|
||||
|
@@ -301,7 +301,7 @@ static void wxgtk_main_do_event(GdkEvent* event, void* data)
|
||||
// examine the event itself to distinguish between the two cases but
|
||||
// this would be unnecessarily complicated).
|
||||
cat2 = wxEVT_CATEGORY_CLIPBOARD;
|
||||
// Fall through.
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case GDK_PROXIMITY_IN:
|
||||
case GDK_PROXIMITY_OUT:
|
||||
|
@@ -901,7 +901,7 @@ void wxMenu::GtkAppend(wxMenuItem* mitem, int pos)
|
||||
break;
|
||||
default:
|
||||
wxFAIL_MSG("unexpected menu item kind");
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
case wxITEM_NORMAL:
|
||||
#ifdef __WXGTK4__
|
||||
//TODO GtkImageMenuItem is gone, have to implement it ourselves with
|
||||
|
@@ -279,7 +279,7 @@ int wxMessageDialog::ShowModal()
|
||||
{
|
||||
default:
|
||||
wxFAIL_MSG(wxT("unexpected GtkMessageDialog return code"));
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case GTK_RESPONSE_CANCEL:
|
||||
case GTK_RESPONSE_DELETE_EVENT:
|
||||
|
@@ -189,7 +189,7 @@ GtkPolicyType GtkPolicyFromWX(wxScrollbarVisibility visibility)
|
||||
|
||||
default:
|
||||
wxFAIL_MSG( wxS("unknown scrollbar visibility") );
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxSHOW_SB_ALWAYS:
|
||||
policy = GTK_POLICY_ALWAYS;
|
||||
|
@@ -572,7 +572,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
|
||||
break;
|
||||
default:
|
||||
wxFAIL_MSG("unknown toolbar child type");
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
case wxITEM_DROPDOWN:
|
||||
case wxITEM_NORMAL:
|
||||
tool->m_item = gtk_tool_button_new(NULL, "");
|
||||
|
@@ -5181,7 +5181,7 @@ void wxWindowGTK::GTKSendPaintEvents(const GdkRegion* region)
|
||||
break;
|
||||
}
|
||||
}
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
|
||||
case wxBG_STYLE_SYSTEM:
|
||||
if ( GetThemeEnabled() )
|
||||
|
@@ -472,6 +472,7 @@ wxFont::wxFont(wxOSXSystemFont font)
|
||||
break;
|
||||
case wxOSX_SYSTEM_FONT_FIXED:
|
||||
uifont = kCTFontUIFontUserFixedPitch;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@@ -229,7 +229,7 @@ void wxNativeFontInfo::SetStyle(wxFontStyle style)
|
||||
break;
|
||||
default:
|
||||
wxFAIL_MSG( "unknown font style" );
|
||||
// fall through
|
||||
wxFALLTHROUGH;
|
||||
case wxFONTSTYLE_NORMAL:
|
||||
pango_font_description_set_style( description, PANGO_STYLE_NORMAL );
|
||||
break;
|
||||
|
Reference in New Issue
Block a user