diff --git a/src/qt/anybutton.cpp b/src/qt/anybutton.cpp index acb5f4c6fd..1bf235bd46 100644 --- a/src/qt/anybutton.cpp +++ b/src/qt/anybutton.cpp @@ -69,6 +69,9 @@ bool wxQtPushButton::event(QEvent* e) case QEvent::FocusIn: case QEvent::FocusOut: GetHandler()->QtUpdateState(); + break; + default: + break; } return QPushButton::event(e); diff --git a/src/qt/dnd.cpp b/src/qt/dnd.cpp index 4e5af17028..ed8ca9e898 100644 --- a/src/qt/dnd.cpp +++ b/src/qt/dnd.cpp @@ -37,6 +37,8 @@ wxDragResult DropActionToDragResult(Qt::DropAction action) return wxDragMove; case Qt::LinkAction: return wxDragLink; + default: + break; } wxFAIL_MSG("Illegal drop action"); diff --git a/src/qt/menu.cpp b/src/qt/menu.cpp index 61d9d5935f..b07a3478cd 100644 --- a/src/qt/menu.cpp +++ b/src/qt/menu.cpp @@ -115,6 +115,8 @@ static void InsertMenuItemAction( const wxMenu *menu, const wxMenuItem *previous } break; } + default: + break; } // Insert the action into the actual menu: QAction *successiveItemAction = ( successiveItem != NULL ) ? successiveItem->GetHandle() : NULL;