From 11d4c50202bb434bdaf8ff328ac28c96e4f9495e Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Tue, 6 Jun 2017 16:11:01 +0300 Subject: [PATCH] Closed beta 1001007001: Fix build in GCC. --- Telegram/SourceFiles/calls/calls_call.cpp | 2 +- Telegram/SourceFiles/mainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/calls/calls_call.cpp b/Telegram/SourceFiles/calls/calls_call.cpp index 61cf9065f..c28050dd2 100644 --- a/Telegram/SourceFiles/calls/calls_call.cpp +++ b/Telegram/SourceFiles/calls/calls_call.cpp @@ -597,7 +597,7 @@ void Call::setState(State state) { break; case State::Ended: _delegate->playSound(Delegate::Sound::Ended); - // fallthrough + // [[fallthrough]] case State::EndedByOtherDevice: _delegate->callFinished(this); break; diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 8fae85145..719369f8b 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -590,7 +590,7 @@ bool MainWindow::eventFilter(QObject *object, QEvent *e) { auto key = static_cast<QKeyEvent*>(e)->key(); FeedLangTestingKey(key); } - [[fallthrough]]; + // [[fallthrough]]; case QEvent::MouseButtonPress: case QEvent::TouchBegin: case QEvent::Wheel: